Facing issues to initiate terraform after the provider version update

I am beginner and practicing terraform.

Till yesterday night my codes where working fine when I had placed the provider details in the main.tf file where I had not specified the provider version for azure.

As part of my practice I split my script into following files:
main.tf
variables.tf
output.tf
provider.tf

and in the provider file i added the source and version details.

When first I ran terraform init it threw an error saying the software installed on my system has an older version than what I have added in the script. So I updated my software.

Now when I run the same command to initialise terraform I am getting below error:

Error:
heyatafroz@Heyats-MacBook-Air Project-VM Creation % terraform init
Initializing the backend…
Initializing provider plugins…

  • Finding latest version of hashicorp/azurerm…
  • Finding latest version of hashicorp/network…
  • Installing hashicorp/azurerm v4.22.0…
  • Installed hashicorp/azurerm v4.22.0 (signed by HashiCorp)

    │ Error: Failed to query available provider packages

    │ Could not retrieve the list of available versions for provider hashicorp/network: 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/network, run the following command:
    │ terraform providers

Provider.tf file:
terraform {
required_providers {
azurerm = {
source = “hashicorp/azurerm”
version = “4.22.0”
}
}
}

provider “azurerm” {
features {}
subscription_id = “”
}

Resolved the issue. Removed the network related snippets and reran the init and it worked.