Database

[{"key":1},{"key":2},{"firstName":"Mario","lastName":"Roberto Rossi"}]

Query

db.collection.aggregate([{$project:{newField:{$concat:["$firstName"," ","$lastName"]}}},{$addFields:{m:{"$regexMatch":{"input":"$newField","regex":"mario robert","options":"i"}}}},{"$match":{m:true}}])

Result