I have been using tupton/alfred-safari-history for years, but it runs with Python2 which is removed from macOS 12.3.
So I decided to write one in Go by referring to it.
How to install
Download the workflow from release page and double click.
The source code is committed on Github: https://github.com/addozhang/alfred-safari-toolkit