Rego is a query language used for policy enforcement. It is mostly used for security enforcment in kubernetes, but can be applied to almost anything. Files with the following extensions are recognized as rego files: rego. This is a syntax file for the Vim editor.