def _is_valid_vespa_name(name: str) -> bool:
    """
    Validate a Vespa name.

    Returns:
        True if the name is valid, False otherwise
    """
    if not isinstance(name, str):
        return False

    return _VESPA_NAME_REGEX.fullmatch(name) is not None

    Validate a Vespa name.

    Returns:
        True if the name is valid, False otherwise
    
src/marqo/core/models/marqo_index.py