That is so weird as I literally did a bit of vibe coding yesterday with copilot, to make something that does this plus other checks.
The reason for mine though was to audit the usage of a security group before deleting it, in case it’s being used for some random
assignment.