Well that is not a script-fu It is a plugin. If it does not work in your Gimp 2.10 then not much can be done. All I can report is it is working in a Gimp 2.10 here.
There are other plugins around for adding guides, I would look at using one of those
There are other plugins around for adding guides, I would look at using one of those