If you're using 64-bit Raspberry Pi OS with Wayland, or any other Debian + KDE + Wayland on aarch64 (arm64) architecture, I've finally found a GUI screenshot application that actually works as it's supposed to.
It's ksnip and it's in repo and on flathub.
sudo apt install ksnip