It’s working when I test it in a theme… the core root gets overruled by theme root, as expected.
Can you show some more info? Where do you define your root? What does your inspector look like?