Thanks for your query.
It could be an abrasion from shaving that got abraded.
It could be a hair follicle that got infected and secondarily had staph or some other bacterial infection and formed an abscess
It could also be a Bartholin's cyst
that got infected and formed an abscess.
I would strongly advise you to consult a gynecologist, and have an opinion and treatment.
All the best.