Pain 😭

I’ve been having this really sharp pain around my ovary. I thought I was just gassy bc when I would pass gas it’d go away but now it’s not that way. My boyfriend and I tried having sex a few moments ago but every time he’d go in I’d have that sharp pain. Any ideas on what it could be?