Both drugs are safe well enough in pregnancy as prescribed by your doctor. Flexon tab contains Paracetamol/Acetaminophen and Baxin-D capsule contains (ampicillin & dicloxacillin).
Therefore, you need not to be worried about this and may continue above medication until temperature going down to normal or follow your doctor's advice.