https://sqlformat.org/
or
http://www.dpriver.com/pp/sqlformat.htm
both of which seem to give nicer output and handle more diverse sql without erroring.
also not really sure why it considers itself "opinionated"