See https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.5.x/Important-96332-ExtbaseValidatorsCanUseDependencyInjection.html
The Validator needs to implement setOptions and, to be forward compatible with 12, use constructor injection.
EDIT: Just saw that it already has been fixed, I forgot to use the latest version. Anyway, if you like to use the way described in the changelog I can provide a pull request.