Apologize for the late response. Yes you are correct, pecl build of redis is broken on PHP 7.4. As this issue is with PHP itself, so reaching out to PHP community would be helpful here.
If you want redis and PHP 7.4 then refer to below work-around.
<open SSH window>
mkdir -p /tmp/pear/temp
cd /tmp/pear/temp
pecl bundle redis
cd redis
phpize
./configure --with-php-config=/usr/local/bin/php-config --enable-redis-igbinary=no --enable-redis-lzf=no --enable-redis-zstd=no
make
ls -l /tmp/pear/temp/redis/modules
mkdir -p /home/site/ext
cp /tmp/pear/temp/redis/modules/redis.so /home/site/ext/redis.so
mkdir -p /home/site/ini
echo "extension=/home/site/ext/redis.so" >> /home/site/ini/extensions.ini
then add PHP_INI_SCAN_DIR
app setting with a value of "/usr/local/etc/php/conf.d:/home/site/ini"
Hope this helps.