Thank you for the response.
``` geany --version geany 1.38 (kompiliert am Oct 14 2021 mit GTK 3.24.30, GLib 2.68.4) ```
Geany says, it's been compiled using GTK 3.24. I checked webkit2gtk on my system, and the package management reports that I have libwebkit2gtk installed with versions 4.0-37 and 4.1-0.
Could this be a reason, there being no libwebkit2gtk version 3.something?