I understand the reason now. He is making some effort but is lost. He provides for the family. He is a good man. He is just not meeting your romantic needs. If my W had been like this instead of going out and boinking men in bars and treating me like dirt, I would have stuck with it too.
I think you are doing right by staying legally married for now.
You got most of the triangle and should be content with your life as it is now.