def parse_source_from_name(file_name: str) -> str:
    """Parses the source id from a DataVault file name.

    Using the naming convention used across the different file types in the DataVault
    platform, that structures file names according to the '<FILE-TYPE>_<SOURCE-ID>_<DATE>'
    format, the function parses the passed file name and return the second element of
    the name, which contains the source.

    Parameters
    ----------
    file_name: str
        The file name of a DataVault file.

    Returns
    -------
    str
        The source id parsed from file_name
    """
    #  if not re.match(r"^[A-Z]+_[0-9]{3,4}_[0-9]{8}\.txt\.bz2$", file_name):
    #  raise Exception
    return file_name.split("_")[1]