There can be ulceration due to traumatic brushing. Which is causing pain.
Run your finger along adjacent gum region of pain. If any particular soft tissue region is painful, that will imply most probable presence of ulcer
Avoid hot hard very cold and spicy food.
Apply, CNBC dental gel, 5-6 times/day.do not swallow the saliva contaminated gel (spit out)and rinse after 5 mins.
If no soft tissue discomfort in particular,
T. Ketorol DT, 1 or 2tabblet dilute in water and consume after food.
Along with antacid.
No hot compression extraorally
Next Steps
visit dentist when possible