When searching tasks in list view it does not search subtasks. The only workaround I found is if you set "Subtasks: As Seperate Tasks" then it works. But there should at least be an option to search subtasks in the searchbar options dropdown.