Could be an Anal fissure. Needs clinical examination to confirm.
Next Steps
Consult a Surgical Gastroenterologist/ General surgeon
Health Tips
meanwhile do sitz bath in warm water, Apply Fidonal ointment two times a day and everytime before passing stools.
Use Syrup Looz 15ml at night for constipation