steve It seems it's trying to install an old incompatible version of imagick but you can add the new one via command with the following. Change the PHP version below if you need it to work for a different PHP edition.
cd
wget https://pecl.php.net/get/imagick-3.6.0.tgz -T 5
tar zxvf imagick-3.6.0.tgz
rm -f imagick-3.6.0.tgz
cd imagick-3.6.0
/www/server/php/81/bin/phpize
./configure --with-php-config=/www/server/php/81/bin/php-config
make && make install
cd ../
rm -rf imagick-3.6.0
Don't forget to add this line to your PHP configuration file at the bottom.
extension = /www/server/php/81/lib/php/extensions/no-debug-non-zts-20210902/imagick.so
And then restart PHP. Reopen your php extensions list and it should now be showing as installed.