Security_group not able to define

│ Error: Unsupported argument

│ on main.tf line 43, in resource “aws_instance” “example”:
│ 43: security_group = aws_security_group.instance_sg.id

│ An argument named “security_group” is not expected here. Did you mean “security_groups”?