Fix brew list when combining --pinned and --versions

Fixes #32067
Closes #32099.
Closes #32134.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>