Thanks for asking the query,
Toothache indicates infection in the tooth involving the pulp tissue, such type of infected tooth need to be treated with Root canal treatment
to save it permanently.
I would suggest you to visit the Dentist
get a checkup done avoid an x-ray of the tooth.
I would encourage you to consult your OBGYN
before taking the medications.
can be taken safely take tab paracetomol for pain relief.
Superficial caries can be excavated and temporay restoration can be placed to give temporary relief.
Further treatment can be caried out after delivary of the child.
Maintain a good oral hygiene
, use antiseptic mouthwash gargles twice daily.
Hope this helps out.