Does formatting Nginx configs alter ${var} variables, regexes, or # comments?
No. Our Nginx formatter runs a token-preserving lexical pass that keeps all # comments, ${variable} interpolations, ~* regex patterns, quote styles, and numeric literals verbatim while normalizing indentation and spacing.