Installation error: Unable to install java: distribution does not exist. Neo4j won't be able to run until java is installed

I'm having this error:

I had an older version working. But when I updated to 1.2.8 this error comes up and I don't understand it. I have java installed (with brew), several versions administrated by jenv.

Also, I'm running the community version in CLI and works well. But, I had to put the java version locally to java 11. I already tried to change the global java version (I tried with 8, 11 and 13) but the error still happening.