K.W.
I agree with Dawn.
Every medication has a rating of how dangerous it is/ how much is passed through breast milk. I'm assuming you told your doctor you're breastfeeding and s/he decided it was more dangerous to not treat you than to expose the baby to penicillin, but s/he should have said something about side effects on baby. Call the pediatrician to verify.