Welcome to HCM.
It looks like you have perineal abscess
. This needs to be examined by a surgeon. If the abscess is pointing out then it will need to be drained. If the infection is mild antibiotic treatment will heal it.
Please consult a surgeon, without wasting time, as it may get worse. Meanwhile regularly clean the area with soap and warm water and if possible use some antiseptic solution as well.