BV while pregnant

I was diagnosed at the ER with na vaginosis, and they prescribed me flagyl.. but I’m reading not take it in the first trimester ... did anyone treat BV in the first trimester?