Amoxicillin and pregnant

I'm pregnant obviously my doctor prescribed 500mg of amoxicillin 3 times a day for 7days for an ear infection she said it is safe to take but my mind just gets worried has anyone taken this while pregnant???