What are you trying to accomplish?
- Enable/disable sonarlint on a per-language basis.
What’s your specific coding challenge in developing your plugin?
Regex of filenames should not be the only way to disable sonarlint.
Fundamentally, there should be a list of languages that sonarlint can support, and there should be config options to enable/disable via a checkmark, which languages the user would like use sonarlint for. IMO its too invasive of a default to assume users want sonarlint to lint all languages.