JSON5 is a more reasonable format for config files, in my opinion.
YAML is full of pitfalls. I think the brackets/braces and quotes are worth giving up a small amount readability to eliminate the ambiguity.
https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-fr...