@xiota maybe the Codenav plugin could also be a suitable place, did you consider it? https://github.com/geany/geany-plugins/tree/master/codenav
It says about itself:
This plugin adds some facilities for navigating in code files. [...] Switch between header and implementation
So, I'd assume there is already some code there to find `.c` and `.h` files matching each other.