for me it seems to work fine, on a OnePlus with android 12I don't know what else to comment than that it just doesn't trigger upon disabling or enabling dark theme. Anyone else for whom it doesn't work?
I've tested this on several devices and it's working ok on all of them.
Maybe it's something in the Havoc OS build you are running that prevents this working?