My guess is that you've upgraded macOS, which in turn has caused bash to downgrade from 5.x to 3.3.
On Catalina bash is actually 3.2.57, it appears. Why on earth ... oh well.
ksh is at least from 2012, could experiment running the pre-zsh-ized scripts with that.