Anus twitching

Idk why but my anus has been twitching for hours? Is it because I’m constipated or pregnancy is causing it ? It’s so annoying/uncomfortable