Severe pain on right side?

Celeste

I’ve been experiencing severe abdominal pain on my far far right side for about twenty minutes now. It’s pretty far up, about an inch below where my rib cage stops. The pain is about as bad as when I went to the ER because of the pain from an ovarian cyst. I’m 23 weeks pregnant. It subsided to extremely uncomfortable when I stay still. Ideas?