Thank you for posting your query.
Based on your symptoms, you could be suffering from a condition known as rectal prolapse
In this condition, part of lower rectum
comes out of anus (what you are seeing as the flesh), especially after passing stools.
This needs evaluation by a colo-rectal surgeon and a surgery may be required to sorrect it. If left untreated, it may lead to bleeding, soiling of clothes, and infection.
Dr Sudhir Kumar MD DM