hello and welcome,
The gum infection
and pain post extraction is due to the development of dry socket
Usually this occurs in traumatic extractions.
i would suggest you to take frequent warm saline gargle.
Irrigation of the socket using betadine and hydrogen peroxide
may be helpful.
the socket can be dressed using ZOE/IODOFORM PASTE to enhance healing .
Please take complete rest,avoid stress for a minimum of 7 days.
meanwhile take complete course of antibiotics.
maintain good oral hygiene