For sql code blocks in markdown files. Maybe sqruff?
Plugin: https://mdformat.readthedocs.io/en/stable/users/plugins.html#existing-plugins