Having issues with upgrading provider version

So I’m currently trying to run terraform init -upgrade to upgrade the provider version to 4.8.0 like how I mentioned in the configuration:

terraform {
  required_providers {
    google = {
      source = "hashicorp/google"
      version = "~> 4.8.0"
    }
  }
}

But for some reason, when I run the command, it keeps pushing the version “3.54.0” instead:

Terraform v1.1.7
on darwin_arm64
+ provider registry.terraform.io/hashicorp/google v3.54.0

and then it just fails saying it can’t get the right version due to it not being available:

ERROR: Failed to query available provider packages

Could not retrieve the list of available versions for provider hashicorp/google: no available releases match the given constraints >= 3.53.0, ~> 4.8.0, < 5.0.0

I tried deleting all .terraform files in the local directory, but still gives the same error.