In your case there could be two possibilities, either it could be a sebaceous cyst
or lesions of hidradenitis
In sebaceous cyst, a cystic soft swelling is present under the skin and is characterised by a central punctum, on squeezing the lesion a foul smelling oily or cheesy material comes out. Sometimes small cysts may heal spontaneously but in most cases excision of cyst is required
Hidradenitis suppuritiva cysts nodules may occur with multiple balckheads( polyporous comedones) which on squeezing may release keratin debris or pus.
I would advise you to consult a dermatologist
as dermatology is a visual field
and appropriate treatment can only be suggested after diagnosing the concern.
Hope that answers your query.