This is most likely an anal fissure, not something serious
And you should visit a Proctologist but if not available you can go to general surgeon or any good experience general physician
Next Steps
Start stool softener + hydration + sitz bath immediately means
Sit in warm water for 10–15 min, 2–3 times/day and
apply Lidocaine for pain anal area
Health Tips
Water: 2.5–3 liters/day minimum
eat Fruits like papaya, banana, and guava
Oats, vegetables, flax seeds
Avoid: all the Spicy food, Junk/low-fiber diet