Sex after baby hurting

My baby will be 7 months tomorrow and whenever me and my boyfriend have sex, ONLY when I’m on top it hurts. Any other position we do I’m fine and I don’t hurt during and after. But whenever I’m on top it hurts alittle bit and after we are done I’m still sore. Would anyone know why or have you experienced it?