I do not have experience with that, but I have had lapses in BMs due to being on weight loss drugs. Prior to them, I had been regular like a clock, but on them, I would have a couple of days without and then occasional diarrhea, too. Never really constipated or gassy or backed up, but just not ideally regular unlike before.
My internist recommended BeneFiber.
https://www.amazon.com/benefiber/s?k=benefiber
You can subscribe and save on Amazon.
It is a prebiotic supplement.
It is amazing. And the thing is, I already had a very good diet with lots of prebiotics from foods and drinks, but I still saw an improvement.
I highly recommend it. It dissolves in liquid or soft foods without any taste at all.