Thanks for asking the query,
I would suggest you to consult a Dentist
and get the treatment plan ,if the tooth can be treated with root canal treatment
there is no need for extraction.
Avoid exposure to x-rays during pregnancy
During pregnancy extra care should be taken while taking medicines, it better to consult your OBGYN
to know the safety for you.
As per your problem you can take tab paracetomol 500mg for pain and amoxicillin
twice can be taken.
The infected enamel dentine can be extirpated and temporary filling can be placed, this will subside toothache temporarily.
Further treatment can be done after delivary.
Hope this helps out.