Weird pain

I'm 23 weeks and have started having this weird pain a couple times a day. It's located right below my right breast, in my rib cage. When it happens it's incredibly sharp and painful for 3 or 4 seconds, then gone (kinda like round ligament pain in my hips). I have an appt next week so I don't wanna call my doctor if I don't need to. So far I don't think so because it just goes away as fast as it came on. Anyone know what this is or had it before?