def METHOD_NAME(self) -> None:
    """Test parse_version_string."""
    with pytest.raises(
        ValueError,
        match=re.escape(
            f"provided version doesn't conform to regex: {KBEnvManager.VERSION_REGEX}"
        ),
    ):
        KBEnvManager.parse_version_string("invalid")