It looks like a Sentinel pile, a skin tag from the anal verge.It is due to Chronic fissure in ano
, a crack like condition in the anal canal
You should not be constipated.
You should eat high fiber diet and drink plenty of fluids.
The swelling may not come down by medicines.
Please consult a surgeon,get examined clinically and proceed accordingly.
Wish you speedy recovery