Exactly, this is a great reason to leave the USA, especially if you already have health issues. With AI taking hold and it getting harder to emigrate, the time to leave is now. Jobs with benefits for programmers are going to become more uncommon, with remote work being possible, as more contract work is going to be offered.
I am a dual US|EU (Croatian) citizen, who is culturally American. I can legally live in about 30 countries (Freedom of Movement rights) as an EU citizen. I left the US over healthcare. For most people on here, Ireland is the place to go to get EU citizenship. Once you get EU citizenship, it levels the playing field and you can go to places with better healthcare than Ireland.