hello and welcome to HCM forum,
I would like to inform you that as you are in the second trimester of pregnancy
, therefore any dental procedure during this stage is usually avoided until there is an emergency.
Kindly see you dentist
and do not worry, the tooth infection
will not affect the fetus in any way, but do not delay the dental appointment.
You can take antibiotic and a painkiller to relief pain, they have to be prescribed by either your dentist or your gynaecologist.
Do not worry you will be fine, But avoid application of hot compresses.
You can perform warm saline rinses(3-4 times/day),
I hope i answered your query,
i wish you good health,