I’m in the Don’t Tell Him camp. Whether he gets back with the ex or not,
him telling you about all this was him trying to gently let you know that he’s not into you. He already knows you have a crush, and he doesn’t feel the same way. I think your plan to distance yourself is a good one, since there’s no point in torturing yourself watching him move on with her or someone else.