It looks like infected sebaceous cyst
You shoudl take an antibiotic and anti inflammatory medicine.
If the pus along with the wall comes out,it will heal well.
If only pus comes out and the wall is still present,get it removed completely by a surgeon after redness
and pain are decreased.
Nothing to worry
Wish you good health