The XQuartz project is an open-source effort to develop a version of the X.Org X Window System that runs on macOS. Together with supporting libraries and applications, it forms the X11.app that Apple shipped with OS X versions 10.5 through 10.7.
Seems to install just fine on 10.9 and later. I run it on Ventura 13.4.1 on an Apple M1 Pro.
Github: https://github.com/XQuartz