antibiotics

I was precribed some meds after I took my culture Pap test you get at 36 weeks they are called ampicillin 500mg take 4 a day does anybody know if they are harmful to baby??? I'm sure dr wouldn't give anything to do that I'm just wondering 🤔🤔