Treating bacterial vaginosis (BV) during pregnancy typically involves antibiotics such as metronidazole or clindamycin. These medications are considered safe for use in pregnancy and can help alleviate the symptoms of BV.