BV 😭😔

Has anyone had BV while pregnant and taken flagyl? I’m so concerned about taking any medications while I’m pregnant. I’m 22 weeks. Help!