with open(r"c:\Users\Latitude 5420\Desktop\mohsenP\handlers\shop_flow.py", "r", encoding="utf-8") as f:
    content = f.read()

import re
matches = re.finditer(r"group_id\s*=", content)
for m in matches:
    start = max(0, m.start() - 200)
    end = min(len(content), m.end() + 200)
    chunk = content[start:end]
    clean_chunk = chunk.encode('ascii', 'ignore').decode('ascii')
    print(f"--- Match at index {m.start()} ---")
    print(clean_chunk)
