begin; set transaction isolation level repeatable read, read only; commit; fail to parse.
With some pointers, I'd love to contribute a PR for this, if you're open to accepting it.
Docs:
https://www.postgresql.org/docs/current/sql-set-transaction.html