function regeximport { regex } from "https://deno.land/x/valibot@v0.8.0/src/validations/regex/regex.ts"; regex<TInput extends string>(requirement: RegExp, error?: string)Creates a validation functions that validates a string with a regex. Type ParametersTInput extends stringParametersrequirement: RegExpThe regex pattern. optionalerror: stringThe error message.