We do this at my work, it works fine. Much better than JSON and skips the insanity of YAML. And it’s nice to have a commented definition file for what is expected/valid in the config.
It's also a one-liner to convert JSON5 to normal json or yaml for things that want it that way.