Ampicillin is classified as a Category B drug by the FDA, meaning there are no proven risks to humans during pregnancy. It is commonly used to treat bacterial infections in pregnant women, including Group B Streptococcus (GBS) colonization, to prevent neonatal infections during delivery.