Thanks for the query.
You might have developed a pilonidal sinus
It mainly occurs due to ingrown hairs.
You may require a course of oral antibiotics
Surgery may also be required depending upon the condition
Let me know if you have any other doubt.
you can ask a direct question to me on this forum, following the below link.
Wishing you a good health.