I love espanso! The cross-platform support is huge (I use it on macOS, windows, and X11 and Wayland-based Linux systems).
Moreover, the original creator (Federico) and the current head maintainer to whom he has handed most of the day-to-day (AucaCoyan) are two of the kindest people I have ever come across in open source. All issues and contributors are treated with respect, it really is refreshing to feel so welcome when trying to contribute.
IIUC they can also run arbitrary scripts with Espanso.
Arbitrary scripts, yes. AHK has a dedicated language which has a lot of hotkey stuff in it (hence the name). Other types of scripts are incomparable.