Install helm pluging using terraform helm provider

I am trying to setup helm secrets plugin using helm_release resource. Following is my code

resource "helm_release" "helm-secrets" {
  name       = "secrets"
  repository = "https://github.com/jkroepke/helm-secrets"
  chart      = "chart"
  version    = "4.4.2"
}

It seems incorrect. Then I follow the documentation and install using below

resource "helm_release" "SECRETS" {
  name        = "SECRETS"
  repository  = "secrets://tf-test-helm-repo/charts"
  chart       = "chart"
}

It also not working. What could be the issue here