Unexpected attribute: An attribute named "target_platform" is not expected here

Hi, all!
Lately i see in VS code to underline me variable target_platform=“windows”.
I was searching for some comments may be in the new version of terraform or aws provider it is not supported anymore but i couldn’t find.
i am with latest terraform v.1.6.2 and aws provider 4.66.

Same underling for data aws_ami

data “aws_ami” “image” {
most_recent = true
filter {
name = “name”
values = [var.instance_ami]
}
}

Required attribute “owners” not specified: An attribute named “owners” is required here
It is working , no issues but why it is underlining the code ?Someting changed in terraform or provider?

BR,
Vladimir