Stressed out rant, I hate doctors right now.

I went to the er the other night for a migraine and they knew I was breastfeeding and they gave me some medication (Tylenol,reglan, and decadron) and told me it's safe so I was breastfeeding my son and called my
Ob to double check if it's safe and they said it isn't.. so now I'm worried something will happen to my son. Also when I delivered they gave me naproxen which I assumed was safe since it was when I delivered and I saw online it isn't safe? I've been breastfeeding this whole time?
I've given him formula in the meantime until this medication is out of my system and I ran out of one formula so I had to use another that I had on hand that I got in the mail as a sample and now I'm worried his stomach will get upset from switching formulas so much. 
I feel like a bad mom, I hope this isn't hurting him. I'm waiting for his pediatrician to call back but it's taking forever. 😓 And I have to start a medication for a uti I have but I'm putting it off because I don't want so many things in his system. Breastfeeding is so nerve wracking.