The compiler (sql-psi) does not support this syntax and is unable to generate the code and to perform the validation. Only workaround is moving the sql code to your Kotlin code and call
driver.execute
... You could add your syntax to
https://github.com/AlecStrong/sql-psi