It's likely just growing pains
I m week 20 n since last 15 days or more hv been having right side rib pain. It doesnt travel to bk n front, if u feel its really a sharp pain then do consult ur doctor.
Having the same issue and OB says this is normal..abdominal muscles, etc... stretching to suite growing baby. Trust me, I've been to the ER twice it's nothing that can be done so save your money. If concerned call OB for peace of mind, and mention at next appointment.
I had really bad rib pain from 9 to 26 weeks. It felt like I was being stabbed at times. Apparently it's the hormone relaxin moving your organs out of the way for the baby and stretching ligaments. I found stretching would help and then lying on the side of the pain.