Flagyl?

Has anyone taken flagyl while pregnant? My doctor prescribed it because I have BV and before anyone says “he wouldn’t prescribe it if it was harmful” it clearly says it on the bottle consult if you’re pregnant. I’ve heard mixed things and I’m just nervous to take it but I know I need to get rid of this infection. I’m 21+3.