Bleeding after postpartum sex

Hi, I’m 7wks pp and just had sex, it was quite uncomfortable and a bit painful and I had some bleeding after that. Is it normal? When should I next have sex? Think it’s due to cervix irritation and not my perineum which has healed.