import os import re folder_path = "." # Real trap regex ๐Ÿ˜ฎโ€๐Ÿ’จ โ€” group(1)=key, group(2)=format args (optional) pattern = re.compile( r""" (?