Thanks for the query.
As it is not safe to take many medications during pregnancy
due to effects on growth of fetus. Its better to follow coservative treatment for few days.
Start warm salt water mouth wash 3-4 times daily for few days it helps alot in relievings the symptoms and removes the food particles stuck beneath the pericoronal flap which may cause irritation and help in reducing inflammation.
You can also go for minimal scaling of that area by your dentist
If things worsen after these steps can go for operculectomy in the mid of your second trimester, with minimal trauma, after a consent from your Gynaec.
hope tried clarify your doubt.