I tried and this worked for me
cd /tmp
git clone https://github.com/Imagick/imagick
cd imagick
nano php_imagick.h -> replace @PACKAGE_VERSION@ to 3.4.5
/opt/plesk/php/8.0/bin/phpize
./configure --with-php-config=/opt/plesk/php/8.0/bin/php-config
make
make install
echo "extension=imagick.so" >...