BV while pregnant

I just got prescribed Flagyl 5 day vagina cream for Bv.. but I just found out I’m pregnant like only 4ish weeks .. is it safe to use? This is my rainbow baby! I dont want it to cause any issues.