Database

[{"first_name":"regex","family_name":"contains"},{"first_name":"no","family_name":"pe"}]

Query

db.collection.find({"$expr":{"$eq":[{"$regexMatch":{"input":{"$concat":["$first_name"," ","$family_name"]},"regex":"^reg\\w+","options":"i"}},true]}})

Result