Bacteria vaginitis

Mary
Has anyone else gotten bacteria vaginitis while pregnant? This is my second pregnancy and I'm 10 weeks and the dr prescribed metronidazole, I read it shouldn't be taken at early pregnancy but I have no choice. Has anyone else taken this?