The Security group that you are trying to delete is referenced somewhere. Based on the screenshot it's mostly due to being referenced by another security group rather than a network interface. You can click on the text shown in the reason to identify what it is.
You can also use the filter Source/Destination (Group ID): <SG_to_be_deleted> to find if any other SG is referencing this SG that you want to delete.
how to delete Security Groups referenced by other security groups, or are associated with instances or network interfaces?asked a month ago
With a Security group I can't connect to EC2 instanceAccepted Answerasked 2 months ago
Can't delete network interface despite there is no instance using itasked 8 months ago
Networking and Security Groups issueasked 3 years ago
Delete EKS Node Group failed due to Security Group Dependencyasked 4 months ago
how to get details of security groupasked 8 days ago
IAM role needed to assign a security group to a running EC2 instanceasked 4 months ago
Are security groups enforced when using ssm start-session with port forwardingasked 4 months ago
"Exceeded" VPC security groups limit when launching instances with one sgasked a year ago
AWS security notification: EC2 instances vulnerable to log4j vulnerabilityasked 9 months ago