Pain pooping

Sorry for the TMI but I’m 25 weeks pregnant and have been suffering from pain when pooping the last couple of months. It’s a sharp stinging pain that makes me squirm and aches/stings for some time after. There’s also blood when I wipe. Does anyone know what this could be???