Thanks for writing here.
It seems to be sebaceous cyst
At times it get ruptured and becomes infected.
Infection can be covered by antibiotics.
Definite treatment for cyst is drainage
so it will be better you consult a doctor.
Hope this will sole your query.