What would you recommend instead? Personally, I think Typescript makes a great config language
Failing that if you actually need/want a procedural/non-pure language then I think Kotlin or Ruby take the cake. Both have extremely strong support for DSLs which IMO is key to reaching a modicum of usability.
In that case I preferred to describe infrastructure rather than program it.