Welcome to HCM.
Most likely it is due to hair route infection,inflammation followed by shaving,improper hygiene after sex,scratching after perspiration.
Take proper local care,Keep that area dry,use medicated soap to clean.
to subside inflammation.Local anti fungal,anti bacterial,steroid
cream will be helpful.
Don't try to squeeze it.Consult your doctor for better medical management.