Where are the tabs in Safari saved (in iCloud or Finder)?
Copy ~/Library/Safari/History.db and paste it at a convenient place like Desktop.
Download DB browser for sqlite https://github.com/sqlitebrowser/sqlitebrowser
Open the database file and find the items as you like.
Here are some tools to help you script the search process:

https://github.com/cedowens/macOS-browserhist-parser/tree/master/parse-browser-history/Sources/parse-browser-history
https://github.com/Roman2K/hist_safari2chrome