def METHOD_NAME(scannedval: str) -> None:
    """Various regex failures."""
    with pytest.raises(InvalidInstrumentData, match="The serial number.*"):
        pip_serials.info_from_serial_string(scannedval)