Why Sonar to denying the token?

java version is 17
gradle version 8.14.4

sonarqube version 7.2.2.6593 and this is how it’s configured in gradle , I know it’s bad idea to expose the token and that I should use key env variable however, I don’t know what’s causing sonar to refuse the token even though the token is updated.

sonar {
properties {
property “sonar.projectKey”, “My_project”
property “sonar.host.url”, “http://localhost:9000
property “sonar.token”,“sqb_9ad52cec9217ca206ac390e8f5bd0a79f6d558e5”
property “sonar.java.jdkHome”, System.getenv(“JAVA_HOME”)
}
}

Issue fixed I just removed the old token and then regenerated it instead of updating the token.
Meaning instead of updating the token from project’s information in sonarqube website. I regenerated a new token in "Tokens of Administrator".