How to resolve an error regarding version compatibility of terrafom and aws

Error: Failed to query available provider packages

│ Could not retrieve the list of available versions for provider hashicorp/aws-instance: provider registry registry.terraform.io does not have a
│ provider named Terraform Registry

│ All modules should specify their required_providers so that external consumers will get the correct providers when using a module. To see which
│ modules are currently depending on hashicorp/aws-instance, run the following command:
│ terraform providers

Terraform takes the first word in the resource name before the _ as the provider name. I suspect that you might have incorrectly referred to the aws_instance as aws-instance in your configuration. Please check your TF configuration.