Welcome to Healthcare Magic
You could be having a dermoid cyst
which is common near outer margin of eyebrows. It would require surgical removal. As of now since it is paining it may be infected for which you may need to apply antibiotic ointment. Consult your Doctor to get you examined and correctly diagnose and manage your condition.