Below is the error logs which is also not accurate as the issue is with target_id is not accepting the organization id when set as a variable.
Error: Error retrieving permissions: googleapi: Error 400: Request contains an invalid argument.
│
│ with module.security-team-org-role.data.google_iam_testable_permissions.unsupported_permissions,
│ on .terraform/modules/security-team-org-role/modules/custom_role_iam/main.tf line 35, in data "google_iam_testable_permissions" "unsupported_permissions":
│ 35: data "google_iam_testable_permissions" "unsupported_permissions" {
Below is the error logs which is also not accurate as the issue is with target_id is not accepting the organization id when set as a variable.