Based on your description it looks like a wax folliculitis which is a common condition. Sometimes they co-exist with fungal folliculitis and can be determined with more precision during a consultation. Kindly consult a dermatologist for exact diagnosis and treatment plan. It is also important to prevent their relapse once you have got it cured. You can opt for laser hair reduction in future.
Next Steps
It can be treated with expertise under the guidance of a qualified dermatologist.
Health Tips
You can consult me online for personal recommendations via Practo direct