Hey guys, how do you deal with regret?

I always find myself deeply regretting my life choices, and just think "if only I just did it like this, everything would be so different". I've tried to be more stoic, but I always fall back to bad coping mechanisms. What helps for you guys?