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
Nizral or Conaderm are good budget shampoos.
Health Tips
You can consult me online for personal recommendations.