It could be a Sebaceous cyst
,a swelling occuring in hairy areas.
IF it gets infected,there will be pain.
Please take antibiotic and anti inflammatory medicines.
If it is not subsiding even after medical treatment,then it has to be removed surgically by a minor procedure.
Wish you good health