Steps to reproduce:
Use !g to search google instead of with Kagi with the safari extension installed and enabled, it always redirects back to Kagi
It should search Google
Safari 15.5 on Mac 12.4
danfreq Heptic Vlad commented there was an update to the extension to address this. Can you check you have updated, and try again?
z64 Fix confirmed! Thanks