Painful sex

So me and my boyfriend have been together for nearly a year and for the last couple of months sex and putting it in has been hurting. It’s like I can’t even get wet anymore and my sex drive is completely gone. I’ve switched pills from mini to combined to a new combined but it was hurting before I made the first switch and I’ve already been treated for an infection. Drs aren’t really helping and I just wondered if anyone else had pain during insertion and for a little bit during sex and what to do? We use lube and it helps but I still have an uncomfortable feeling and it has ruined my sex life. I don’t think I’m pregnant although I have switched pills and always have unprotected sex with all my pills I don’t have a break.

Sorry for the long post I’m just very worried at what it might be now it’s been going on for so long