It looks like third molar also known as wisdom teeth,trying to erupt.
You haven’t specified your age.
Typically erupt between the ages of 17 and 25, although the timing can vary, and some people may have teeth erupt later, in their late 20s or even 30s.
Potential for impaction: If the mouth is too crowded, the wisdom teeth may not be able to erupt correctly, becoming partially or fully impacted. Meaning they are unable to erupt ( or coming out) properly causing pain and swelling of the gum.
Next Steps
Take an x ray ( RVG/ OPG ) for better understanding of the teeth position and other potential causes if any.
If the position is normal, you should get relieved within a few days if not you may need to get the tooth extracted.
Health Tips
Stop smoking . Avoid hot compression.