Debian moved on to python3 so python2 support for Gimp 2.10.22 is dropped. the gimp-python package is gone.
It might be possible to add some old packages to incorporate python2 see: https://www.gimp-forum.net/Thread-Heal-S...4#pid18354 However, while I know this works for ubuntu (and variants) but have not tried on a newer Debian version. Ubuntu is based on Debian so there is a chance it works, it would be a try-and-hope operation.
Edit: Installed Debian testing (Debian 11) in a VM and sorry to say too many missing packages to make a gimp-python installation.
There are other options to get Gimp python plugins working again.
Install the flatpak version. That should get you a sandboxed Gimp with python and somewhat limited for some operations - scanning for example.
Use an appimage, should work but again I have not tried with Debian buster. Get the Gimp 2.10.22 version from the bottom of the assets list: https://github.com/aferrero2707/gimp-appimage/releases/
Edit: Installed Debian testing (Debian 11) in a VM and sorry to say too many missing packages to make a gimp-python installation.
There are other options to get Gimp python plugins working again.
Install the flatpak version. That should get you a sandboxed Gimp with python and somewhat limited for some operations - scanning for example.
Use an appimage, should work but again I have not tried with Debian buster. Get the Gimp 2.10.22 version from the bottom of the assets list: https://github.com/aferrero2707/gimp-appimage/releases/