You can use the python regex library to find the desired pattern in a specific folder.
If you have the folder path, you just have to check all files names against this regex.
import os
import re
# Create the list of all your folder content with os.listdir()
folder_content = os.listdir(folder_path)
# Create a regex from the pattern
# with the regex, you want to find 'vendor.' --> 'vendor\.' (. needs to be escaped)
# then any alphanumeric characters --> '.*' (. is regex wildcard and .* means match 0 or more times any characters)
# then you want to match .js at the end --> '\.js'
regex_pattern = 'vendor\..*\.js'
regex = re.compile(regex_pattern)
# Search in folder content
res = ''
for path in folder_content:
if regex.search(path):
res = path
break
print(res)