C # – Get a string in a text file using regex in Python

Hello, I would like to know how to get a channel of this format & # 39; XXXX & # 39; in a text file, using regex, I tried several methods, but without success

import re
f = open (& # 39 ;, & # 39; r)
standard = re.findall (rs  sSSBR  s, f)
if standard in f:
print (default)
if not:
print ("Pattern not found!")

When I run this error returns:

Traceback (last most recent call):
File "analiseInfos.py", line 3, in 
    standard = re.findall (rs  sSSBR  s, f)
File "C:  Users  Matheus  AppData  Local  Programs  Python  Python37  lib  re.py", line
223, at findall
returns _compile (pattern, flags) .findall (string)
TypeError: expected string or byte-like object