Bacteria Vaginosis

Ri
My Dr. just called me this afternoon and said my test came back and said I have BV and need to pick up my prescription tomorrow to treat it. She doesn't seem worried at all but I'm a little concerned about the pills if it's harmful to the baby or not. Has anyone taken prescription medication or gel to treat the BV?