Thanks for your query
It looks like you have developed a sebaceous cyst
These lesions present as skin colored or red lesions developing under the skin.
They usually have a black dot on their surface.
Sometimes even a hair follicle is seen coming out of the centre of the lesion.
There is history of occasional discharge of fluid or serum like discharge from the lesion.
These can become painful also when infected.
I would advise you to see a dermatologist
for proper treatment or removal of the skin lesion.
Hope it helps.
Dr Geetika Paul