I think the question whether to keep him or dump him, is the minor issue here, the major issue, as I see it, is that you are very unhappy.
We all deserve to be loved, to enjoy sex, to feel good in our life.
Sounds like you are unhappy with your own.
How would you like your life to be?
Than go and get it!
If you can do it whithin the marrige (which I don’t suppose from your description of the problem), that is great.
But if not, Go for Happiness!.
We are all the creators of our own reality, seperate, find yourself a nice home, where you always wanted to live, one like you always wanted, furnish it the way you’d always dreamed of, then make a list of all the things you always wanted to do, and start with what you can.
Along this path, you will meet new friends and eventually a new love, you will have great sex, and then, when you are laying on your new couch, in your new home, in your new and happy life: don’t forget to thank your ex for putting things so clear, that you finally had to leave