I'd like to echo that bonsai's solution worked perfectly for me as well, specifically, the Wayland custom keyboard shortcut with the "sh" command line command.
The Issue is known for at least 2 years on other distros:
https://www.reddit.com/r/Fedora/comments/17vdusg/in_f39_flameshot_doesnt_launch_from_a_keyboard/
Problem:
If you try to configure a custom keyboard-shortcut for the Print -Button to execute the /usr/bin/flameshot gui command, nothing happens if the Print-Button is pressed.
I had the same problems and here are my two solutions:
Solution #01 - Recommended
Create a script with only this command in it:
/usr/bin/flameshot …