Since for some reason get_redis_connection does not use the arguments I gave it, I saw that in its implementation it also looks for an environment variable REDIS_OM_URL and if it finds it, it is used to create the connection. I then updated my .env.dev file with:
REDIS_OM_URL=redis://redis:6379
And I changed the connection setting to:
redis_client = get_redis_connection()
And now it works like a charm.