You probably already have this warning and think you have correctly installed php8.X-imagick. You check lot of times, but don’t search how to remove it.
Try this :
# apt-get install libmagickcore-6.q16-6-extra
Nextcloud and imagick SVG support : how to remove this warning