I tried that for a little while with my ex while we were working things out. You really need your own place that is away from the other person all the time. You are constantly reminded of your ex while you’re there.
Presumably your children constantly remind you of your ex as well, so I'm not sure "set things up in a way where I'm not reminded of my ex" is an achievable goal in the first place.