Fix and clarify the processing of EXCLUDE list


The EXCLUDE argument is a multi-value argument and considering the other
arguments of the command, it looks like that it is asking for a list of
paths/strings, and not regex; but if a list of directories/paths were
passed to it, the list(FILTER would complain since a list is not a
REGEX.

Pick-to: 6.5 6.6
Change-Id: I6084da967c32c074df941b6692669d3b23d1df77
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commite23a3e1c9c85b928b8aaef1d25ed541296355714
parent087ca720a7e7784bd4ada57800d6016c823e94e8
authorAmir Masoud Abdol <amir.abdol@qt.io>
committerAmir Masoud Abdol <amir.abdol@qt.io>
commit timeMon, 31 Jul 2023 17:33:21 +0200