def METHOD_NAME(versions):
    str_before_version = "Mapbox Navigation SDK "
    str_after_version = " "
    stable_versions = {}
    pattern = re.compile("[0-9]+\.[0-9]+\.[0-9]+")
    for version in versions.keys():
        beginIndex = version.find(str_before_version)
        if beginIndex == -1:
            continue
        version_name = version[(beginIndex + len(str_before_version)):]
        endIndex = version_name.find(str_after_version)
        if endIndex == -1:
            continue
        version_name = version_name[:endIndex]
        if pattern.fullmatch(version_name) != None:
            stable_versions[version_name] = versions[version]
    return stable_versions