It appears to be an infected ulcer. Advisable to take antibiotics along with local ointment to reduce pain and swelling
Next Steps
Online consult for proper medications according to age and other comorbidities if any
Health Tips
Good oral hygiene, non spicy non oily food , mildly warm saline gargles after every meal