What is this? Sorry if it’s gross.

I thought it was an ingrown hair and it’s very painful. Inner thigh area. How do I get rid of it?