For those still facing the issue, I have managed to resolve it by disabling the K2 Mode in the Kotlin Settings