According to Long Callbacks documentation, long callbacks currently do NOT support pattern-matching dependencies.
There’s an open GitHub issue on this topic (a feature request). You can support it by adding a comment or like…
Also there’s one workaround suggested here on the forum but I never tried it myself.