IntelliJ support SQL but only the ultimate edition and since the android studio is built on community edition so consequently, it doesn’t support SQL.
I looked it up and PyCharm Community Edition does not support database / SQL only the ultimate edition
take a look at this comparison and this
solved SQL syntax formatting on Android Studio or IntelliJ?