It’s not because of Alfred 5, but because you’re on macOS Monterey 12.3 (or above), which removed Python 2. With the Automation Tasks and Running Apps Filter from Alfred 5, it’s simpler to rewrite and expand this one than fix the old version.
You can filter for the app in a bunch of different ways. Here’s a Workflow. As for the alternatives methods (all the ⌘ and ⌥ branches), I’ll leave to you to remake as you like.
For future questions about Workflows not working, please be sure to include the debugger output so we can better identify what’s going on.