def METHOD_NAME(value: str, pattern: re.Pattern = _S3_REGEX) -> None:
    """
    Check the provided value for any special characters that would
    violate Amazon S3 object key naming rules. Raise ValueError if any
    are found.
    """
    if len(value) > 100:
        raise ValueError(
            " provided key value must be 100 characters or less in length."
        )
    if not pattern.match(value):
        raise ValueError(
            f' provided value "{value}" contains non-alphanumeric '
            f"characters. (dashes and underscores permitted)"
        )