def METHOD_NAME(metrics_file: str) -> str:
    assert metrics_file.startswith("metrics-") or metrics_file.startswith("regression-"), f"Unknown metrics or regression file name format: {metrics_file}"
    # metrics_file usually looks like metrics-%Y%m%d%H%M%S or regression-%Y%m%d%H%M%S
    stripped_filename = metrics_file.split("-")[1]
    datetime_obj = datetime.strptime(stripped_filename, "%Y%m%d%H%M%S")
    return datetime.strftime(datetime_obj, "%Y-%m-%d")