Metronidazole while pregnant

My dr prescribed this medication for BV to take for 7 days 2x per day.. I know they wouldn’t prescribe something that isn’t safe but curious if anyone has taken this while pregnant?