Вы ошибаетесь, вам нужно использовать строковый аргумент для поиска любой строки
# These will only work in case like these <b>Python</b>
soup.find_all(string="Python")
# Not in these <b>python</b> or <b>Python is best</b>
#We can use regex to fix that they will work in substring cases
soup.find_all(string=re.compile("[cC]\+\+"))
soup.find_all(string=re.compile("[Pp]ython"))