Amoxicillin for chest infection while pregnant?

Jessica • 💖👼🤰🏼 🌈 Newly pregnant with our rainbow 🌈 baby due January 2024, mom of 1 beautiful baby girl born July 2021

I’m currently 6 weeks 3 days, due July 4th 2023 with my second baby. After a week of illness in our little family I’ve been really suffering with a mucus cough. I’ve finally been to the doctor and she has prescribed amoxicillin as she can hear it all over my chest, but she promised it’s ok to take while pregnant. Has anyone had amoxicillin while pregnant and it’s been fine? I’m not normally one to second guess medicine or doc advise but nervous! Thanks ladies ❤️