The new StringSyntax attribute in .NET 7 is pretty neat, especially combined with the raw string literal syntax.
Obviously you can't use it on a local variable, but you can work around that with a simple local function

ALT C# using raw string literal syntax and the new .NET StringSyntaxAttribute, allowing for inline syntax highlighted JSON