Redis version error when I run bundle exec db:create

Hi!
I trying to following the directions seen here:

However, when I try to run bundle exec rake db:create, I get the following error:
nil versions are discouraged and will be deprecated in Rubygems 4 Discourse requires Redis 6.2.0 or up
When I run my Redis server, it says the version is 6.2.6. I’ve tried downloading each dependency line by line in the link to the script from the link above, but I’ve had no luck. I have also tried to uninstall and reinstall Redis to the most recent version but still has that same error.