Medicine during pregnancy

Tabitha • My baby boy hayet noori due in sept 8th

Kinda scared to take this antibiotic metronidazole it can give u a miscarriage since I’m only like 9 weeks I have a bacterial infection I don’t know what to do I’m afraid to take this I had two miscarriage and I don’t wanna lose this one with medicine 😫what should I do any advice ?