I hope below Steps can help
Step 1. Once bash has been installed using brew
brew install bash
Step2. You can verify the path of the available bash by using the following command:
/usr/bin/which -a bash
You now have the default /bin/bash and your newly configured /opt/homebrew/bin/bash from homebrew.
By using the following commands, you can verify the version of both
Step 3. Hence, once this has been confirmed for homebrew installation, make a softlink of it to facilitate easy access,
sudo ln -s /opt/homebrew/bin/bash /usr/local/bin/bash
Step 4. To make it Standard Shell, modify the file /etc/shells using the following command:
sudo vim /etc/shells
Add an entry at the end as /usr/local/bin/bash
Step 5. Enter the following command to create a newly configured bash shell for the current user
sudo chsh -s /usr/local/bin/bash
Step 6. To verify, close the Terminal completely and reopen it, then execute.
Step 7. Done