Pain during AF (maybe tmi)

Whitney
Ok for last couple of cycles I've been getting sharp pains in my rectum during the first couple days of cycle, the pains hurt so bad it hurts for me to poop or pass gas, I've looked up what could cause this and most sites say it could be endometriosis, has this happened to anyone before it wasn't endometriosis??