check = re.compile(f"^{banned_id[i].replace('*','.')}$")


여기서 다른건 알겠는데

re.compile( 하고 나오는 f가 무슨 뜻인지 잘 모르곘습니다.