def METHOD_NAME(file):
    """Find version number in file path string.
    Args:
        file (str): file path
    Returns:
        str: version number in string ('001')
    """
    pattern = re.compile(r"[\._]v([0-9]+)", re.IGNORECASE)
    try:
        return pattern.findall(file)[-1]
    except IndexError:
        log.error(
            "templates:get_version_from_workfile:"
            "`{}` missing version string."
            "Example `v004`".format(file)
        )