import re
filename = "Custom-prefix_Shop_no24_20221009.csv"
prefix = "Custom-prefix"
pattern = re.compile(fr"{prefix}_(\w*)_(\d{{4}})(\d{{2}})(\d{{2}})\.csv")
matched = pattern.search(filename)
if matched:
	supplier, year, month, day  = matched.groups()
	print(f'supplier={supplier}, year={year}, month={month}, day={day}')