Dental X-rays while pregnant?

Are they safe? My OB fax the release form to my dentist and mostly everything I have read said it’s safe but I’ve never actually met or spoken to anyone whose had any xrays or cavities filled while pregnant. Did the baby turn out healthy? I’m about 17 weeks and my cavities are hurting me, I already did the xrays but now I’m worried it was a mistake.. 😢 anyone else had dental work done?