Let me give some input here based on my personal experience.
As BritTim stated above, we need to be very between Visa and Extensions of stay. Also, on the actual situation.
For me, I divorced from the Thai mother when my son was still very young and I got the full parental rights by the court during the divorce. Since my son has been living with me in the same house. I actually purchased the house but in my son name (he owned the chanote and is the master in the blue book).
As I have working in SE Asia for the last 20 years (Vietnam, Cambodia, Myanmar), I was very frequently travelling between those countries and Thailand to come back home.
The justifications to travel very often to Thailand was obvious for the immigration and as soon as I provided the Thai birth certificate, the copy of the tabien baan, I was granted a Non O 1 year multi entries based on my son.
I did that for many years. The last Non O of this type was granted to me in 2019 from the Thai Embassy in Yangoon. My son was already 20 years old.
In 2020, as this 1 year Non O was expiring, I was in Thailand but due to Covid, my next trip abroad (Vietnam) was delayed but I got a 60 days extension at the immigration (based on my son). I left Thailand within the 60 days and this visa expired while I was in Vietnam. I went to the Thai Embassy in Saigon in 2021 to get new Non O but they explained me that they were not issuing anymore 1 year ME Non O and advised me to go for a 90 Non O and get 1 year extension based on my son when I will be in Thailand. The requirements a bit higher, asking a letter from school or employer (either he was still in school or working already)of my son, photos inside and outside our house with both of us, and i think 400k in the bank (can't remembe)....
I could get all of that of course but as I was over 50 years old, having sufficient funds in the bank (800k), i decided to go for the retirement extension instead as it was faster and easier. But my son was already 24 years old and there was no issue about that.