ZGC is available from JDK16, but is not compatible with AOTC, annoyingly, and the latter has been removed from JDK17. I have found that using AOTC for the java.base module makes IDE startup much smoother.
If useful: ZGC has actually been available on different platforms in earlier Java releases. Linux, Windows, and macOS didn’t all get ZGC at the same time.