The error occurs because you are trying to include a list (ptrn_wlsap) within another list (dvc_ptrns). When you iterate over dvc_ptrns, the re.search function expects each pattern to be a string, but instead, it encounters a list.
dvc_ptrns = [ptrn_print] + ptrn_wlsap