If you have a field (“fieldname”) containing concatenated text (e.g. “value1, value2, value 3, value 4”) then you can split it into a data.table list column and then filter by text pattern/regular expression.
dat[!grepl(
'value1|value2',
strsplit(fieldname, split = ', ')
)