This is modus-mode, the Emacs mode for editing Modusfiles. It uses tree-sitter.
Add this to your packages.el
.
(package! modus-mode
:recipe (:host github :repo "modus-continens/modus-mode"))
Installation should be similar if you use the straight package manager.