Sorry to hear this. My dad suffered with this as well and he was given Lactulose for this which helped him a lot. He tried Movicol first which didn’t really work too well and I think that that has been the case for quite a few here over the years as well. As Mary says though, any laxative should be discussed with your doctor first and they would no doubt be able to prescribe something for that for you.
I have a few links for you as well on this issue from the UK and I hope that they will help.
After a lot of trial and error, my go to remedy has been Bisacodyl 5 or 10 mg at bedtime plus an over-the-counter probiotic, together with lots of water, fiber and exercise (taking walks). Bisacodyl is not for everyone as it can cause cramping. Any laxative you try should be checked first with your doctor to be sure it does not interfere with any treatment or with recovery from surgery. There are many remedies out there, but it can take some trial and error to identify what works for you.