Bacterial vaginosis

I am 19 weeks 1 day and got diagnosed with bacterial vaginosis yesterday. My OB prescribed Flagyl to take for 1 week. Has anyone else experienced this during a pregnancy? Having some mild cramps is this normal? I've had a miscarriage before and super scared about something going wrong.