Thank you for your query,
Is your child exclusively breastfed child?
Or are you giving any bottle feeding?
in exclusively breastfed infants is rare.
Those medications are safe if given as per the prescription of a Pediatrician
in accurate dosage according to his weight and for appropriate duration.
Hope I have answered your query.