definePluginDefines and registers custom regex plugin rules with validation against reserved names.
plugin: DefineRegexPlugin<RuleName>name (string): Unique identifier for the plugin (cannot be a reserved name)pattern (RegExp): Regex pattern to register.validate ((ctx:RegexValidateContext<T>) => boolean): Validation functionReturns the registered plugin object for chaining or direct use.