The upgrade to the Zinc compiler introduced this failure in Scala projects internally:
597d813#diff-08c249a9aa06c1271f91ea8a6f37375c76844b9261f2d1a6bf632594fd8ff1fd
Reported also against sbt, scala-maven-plugin and Zinc itself:
Your Environment
Gradle 7.5