Gets or sets a regex that can be used to validate the input.
This is only valid when Type is ScriptParameterType.Text.