Bug not detected RSPEC-2445

Hi Team,

The expected SonarQube bug appears not to be caught in the code below, even though it’s caught in a very similar code as seen in the screenshot. Any thoughts?

class BuggySynchronization {
    private String color = "red";
    private String clr = color;

    public String showBug() {
        synchronized(color) {
            clr = "green"; 
            return clr;
        }
    }
}

Sonarqube version 25.5
Lang: Java
SonarScanner version: 5.0.1.3006

Screenshot of code scan results