Right side abdomen pain
Okay so, I'm putting this down here because there are intimate details that I'm scared to share with a doctor sex is a taboo from where I'm from. But I wanted to ask if this is serious. So a couple of months ago, whenever I had penetrative sex with my boyfriend, when I'm on my back, it hurts when he hits the lower right side of my abdomen. It's a sharp sudden pain and it'll go away if we switch positions. We are back to long distance now, however, yesterday when I woke up to pee there was an intense stomach pain that concentrated at the right side and I felt I could not pass gas. It was extremely painful but it went away after I took some medication and did some home remedies for trapped gas. It has not happened since. I'm worried there's a connection. And I'm worried I have something that led to pain during sex. Could someone help me out with this? I have had a cyst in my ovary before but my periods are regular and there's no spotting.