Zhs history.ignorePatterns is set but not working

I just set up a VM with non graphical NixOs and home-manager with standalone installation. I wanted to use the Zhs shell and the home-manager configuaration of it correctly sets up the .zshrc file but still in the history there appear comands that should be filtered by HISTORY_IGNORE.
Is there any way to workaround/fix this? Is it a known problem?
Here’s some system info:
-NixOs version: 23.05.4172 (stoat)
-home-manager version: 23.11-pre
-zsh version: 5.9 (x86_64)