On my wife's iPhone, they have groups that allow _certain people_ to contact them with _everything else_ being disabled. I would assume there's similar settings across devices.
https://support.apple.com/en-us/HT212608
https://www.theverge.com/2019/9/26/20883331/iphone-do-not-di...
Concept old as dirt, everyone should use.