That completion function works only with nix 2.3 (and older). The
newer versions use ANSI escape sequences in the --help output, and
this seems to confuse the function.
Nix 2.4+ has zsh completion built in so removing it from
nix-zsh-completions should not harm most users.
(cherry picked from commit c35e1f6c26)