problem extracting matching sentence from column in data frame

If "the preparation was" was just an example, rather than a literal, stringr supports regex. I'm not sure I follow your Python example because your original example did include the search string and the problem you were trying to solve was to exclude the records without it. As @andresrcs suggests, a reproducible example, called a reprex would be a great help.