That’s how it works in Sublime, yes. You have a regex-based parsing engine that you configure via a YAML file, and there you assign scopes to the tokens.[1]
As a default, the [x]it! Sublime Package uses the available default scopes. The user can choose to override the associated colours in their local settings.[2]
[1]: https://github.com/jotaen/xit-sublime/blob/main/xit.sublime-...
[2]: https://github.com/jotaen/xit-sublime#syntax-highlighting--c...