Here, look at this:
https://govisafree.com/malta-digital-nomad-visa/
Be a non-EU citizen, prove contracts worth 2700 EUR/month, lease agreement, and medical insurance. Good to go, here's your 1 year residency VISA, renewable each year. After a while, they'll help you get a EU passport if you desire one.
That seems so simple and straight forward compared to Thailand. Why doesn't Thailand do that? They're missing out.