Sex postpartum

I’m 6 weeks pp and I tried have sex yesterday and it was agony. I Did everything they advise- Lots of foreplay and lube and put a pillow under my pelvis but no luck.

Does anyone have any advice? How long did it take people to be able to do it?