def _get_unmatched_members_from_bindings(bindings_list, regex):
  """Get all binding members that do not match the regex.

  Args:
    bindings_list(List[Dict[str, List[str]]]): List of binding dicts
      (role to members).
    regex (Regex): regex to match members to.

  Returns:
     Set[str]: members that did not match the given regex.
  """
  unmatched_members = set()
  for bindings in bindings_list:
    for members in bindings.values():
      unmatched_members.update(m for m in members if not regex.match(m))
  return unmatched_members