Painful sex

La

I’ve recently come off of the pill (about 6 weeks ago), as it was making me more prone to depressive episodes and really not great for me(I’ve been on it for about 18 months). However, pretty much since I’ve come off the pill, sex has been painful.. It’s this internal pain that is quite unbearable and hangs around for about half an hour after we stop.. Does anyone know why this would or could be?