This is such a tough path to walk, but there is always the promise of "This too shall pass"
For me when I left, I was still very much caught up in the sympathetic mindset for my AH - I thought I "owed" him - to help him because I felt guilty about leaving
I did some of the things you are talking about & my (now ex) AH was ungrateful & filed papers for spousal support, half of my retirement, the house & half of everything I owned.
I had to work a long time on the resentment & anger I felt.
I guess my thoughts are - I wish I had taken some time before offering & doing the financial things I did for someone who was unable to appreciate or acknowledge how "fair & generous" I had been for years.
Please give yourself time & space to make sure you can be a peace with your generosity even if he is angry & ungrateful.
Wishing you the best - don't give up before the miracle happens in you