What to do about swollen and painful innermost gums

Swelling and pain in the innermost gums is most commonly seen in pericoronitis, which can be rinsed and medicated or gargled, and in severe cases can be relieved by oral medication.
Pericoronitis is a common inflammatory reaction in the process of tooth eruption, part of the tooth is covered by the gums to form a blind pocket, food debris or soft tartar exists in the blind pocket, bacterial growth and inflammation. You can use hydrogen peroxide to rinse in the blind pocket and apply iodized glycerin locally.
You can also use a gargle to rinse your mouth. You can use chlorhexidine gargle twice a day for two minutes each time. In severe cases, you can take oral medications such as cefixime, amoxicillin capsules, and metronidazole.
Therefore, the swelling and pain of the innermost gums is a form of pericoronitis, which can be rinsed locally with hydrogen peroxide and then coated with iodized glycerin, or you can gargle with chlorhexidine gargle, or take oral cefixime, amoxicillin, etc., which need to be dealt with by a dentist.
Medications should be used under the direction of a physician.