As you are pregnant, breast will gets tender and sore through pregnancy + veins that's visible due to hormonal changes, milk productions. You can massage with baby oil to reduce soreness and pain. This pain will come go,so need not worry unless of prolong pain that could be near the ribs due to space constrain in our tummy. You can also ask the doctor/gynae to check on this to clear doubt away.