After searching online I realized that re.search(r"\\s", word) considers "\\n" as whitespace if it is in the word. I am parsing data of a large JSON fil