I have a dictionary of words with their frequencies as follows.
mydictionary = {\'yummy tim tam\':3, \'milk\':2, \'chocolates\':5, \'biscuit pudding\':3, \'sugar
Use word boundary '\b'. In simple words
recipes_book = "For todays lesson we will show you how to make biscuit pudding using
yummy tim tam milk and rawsugar"
>>> re.findall(r'(?is)(\bchocolates\b|\bbiscuit pudding\b|\bsugar\b|\byummy tim tam\b|\bmilk\b)',recipes_book)
['biscuit pudding', 'yummy tim tam', 'milk']