pattern = re.compile('\x08(\\w*z\\w*x\\w*|\\w*x\\w*z\\w*)\x08')
document = """Here is some data that needs
to be searched for words that contain both z
and x.  Blah xz zx blah jal akle asdke asdxskz
zlkxlk blah bleh foo bar"""
print(pattern.findall(document))
Как отобразить все слова, содержащие эти символы?