I found this helpful blogpost from this person, who understands what exactly is the issue
https://blog.ni18.in/fix-compose-compiler-kotlin-version-expo-bare-workflow/