Can you go the other way? (E.g. edit the above and turn it back into SQL string)
I've used sqlglot to do this in the past, but doing it natively would be nice
it can, but it doesn't format. You can even run the ast!