Forbidden error getting .well-known/terraform.json

Hello All,
Recently I had to modify the domain for providers in my versions.tf file. Here is an example:
Before

terraform{
...
backend "http" {}
required_providers {
provider_1 = {
source = "a.com/a/provider_1"
version = "1.0"
}
}

After:

terraform{
...
backend "http" {}
required_providers {
provider_1 = {
source = "b.com/b/provider_1"
version = "1.0"
}
}

I am trying to reconfigure using

terraform init -reconfigure -backend-config='address...' -backend-config='lock_address...' -backend-config='unlock_address...'

but getting the below error:
Error: Failed to query available provider packages Could not retrieve the list of available versions for provider a.com/a/provider_1: could not connect to a.com: Failed to request discovery document: Get "https://a.com/.well-known/terraform.json": Forbidden

I can see in the .terraform/providers directory that there is a.com and b.com folder created. The a.com does not have any files but the b.com does have the provider files.

Any idea how to resolve this or why terraform is still looking for a.com domain? I have tried renaming the .terraform folder in order to recreate it as well with no luck.

Thanks in advance.

Provider identity is part of the Terraform state file.

If you need to change a provider address, you’ll need to use the terraform state replace-provider command to update those references.