Ouch, that looks nasty. I'd keep him in a hospital tank, and keep on top of water changes incase it is bacterial. Have you tried salt baths? I'm not sure of betta meds, but another forum where someone's female had a lump on her face was told to use Tetracycline.
It could be a tumor, which as I understand can't be fixed :
Poor dear :(:(