Here is ChatGPT's answer:
Oddly, the stats date back to 2019.
According to the National Statistical Office of Thailand, as of 2019, the percentage of long-term foreign residents (staying in Thailand for at least a year) is approximately 1.32% of the total population. This equates to around 910,000 long-term foreign residents in Thailand.