def validate_index_name(name: str) -> None:
    """
    Validate a MarqoIndex name. Raises ValueError if validation fails.
    """
    if _INDEX_NAME_REGEX.fullmatch(name) is None:
        raise ValueError(f'"{name}" is not a valid index name. Index name must match {_INDEX_NAME_PATTERN} '
                         f'and must not start with "{constants.MARQO_RESERVED_PREFIX}"')
    if name.startswith(constants.MARQO_RESERVED_PREFIX):
        raise ValueError(f'Index name must not start with "{constants.MARQO_RESERVED_PREFIX}"')

    Validate a MarqoIndex name. Raises ValueError if validation fails.
    
src/marqo/core/models/marqo_index.py