First things first. I tried the latest forge mdk (1.15.2 - 31.1.46) and it works.
I felt like poking around it a little bit more to understand what I was doing wrong, so I tried few other things.
I uninstalled all JDKs I had except one version of the adoptopenjdk 8 (tried jdk8u252-b09, jdk8u242-b08 and jdk8u232-b09 and settled on the last one for the remainder of my tests). The problem persisted.
I tried it with eclipse instead of intellij (clean sepparate folders were used for eclipse tests). The problem persisted.
I tried running it with these versions of forge mdks:
forge-1.15.2-31.0.0-mdk
forge-1.15.2-31.0.11-mdk
forge-1.15.2-31.0.15-mdk
forge-1.15.2-31.0.19-mdk
forge-1.15.2-31.1.0-mdk
forge-1.15.2-31.1.1-mdk
forge-1.15.2-31.1.5-mdk
forge-1.15.2-31.1.12-mdk
forge-1.15.2-31.1.25-mdk
forge-1.15.2-31.1.44-mdk
forge-1.15.2-31.1.46-mdk
It worked on all versions except the 31.1.0. I used the exact same steps to create the projects, always in clean folders. No idea what could be affecting it since the build configuration seem to be the same for instance between 31.1.0 and 31.1.1.