Thank you for your question.
You will need to see your doctor to get a urine microscopy and culture test done. This will determine the organism and correct drug it is sensitive to. There are several drugs that are not safe in pregnancy and these need to be avoided. Your doctor is the best person to prescribe the correct medication under the circumstances. You will also need additional guidance and regular urine checks in pregnancy depending on the type of infection as UTI in pregnancy is associated with several risks to the pregnancy at different gestations.