Because Bash changed its license to GPLv3 it is not likely that Apple will update the builtin Bash anytime soon.
That is not really a problem because you just:
$ brew install bash
$ brew install bash-completion@2
$ sudo bash -c 'echo /opt/homebrew/bin/bash >> /etc/shells'
$ chsh -s /opt/homebrew/bin/bash
and now you can use cool things like globstar, coproc, associative array, ...