@SarahGen-- Can't you just take acetaminophen? It's safe to take during pregnancy. I had a tooth cavity when I was pregnant and I took acetaminophen until I could see the dentist about it.
You can also use a toothache pain relief gel that's sold at the pharmacy. Those are safe to use during pregnancy as far as I know,