To add onto what sebahat said, if you really need imagick on php 8.6, you can do it yourself manually, although since you're on Debian 11, you probably won't find imagick in the default repo either and probably better off building from source or using a third party repo like Sury PHP repo. But, otherwise, if you're not utilizing features that was added in 8.6 I'd say stick with 8.5 for the time being.