So stay with me, I'm probably going to do a bad job of explaining it:
The idea would be that you have a list of regex entries (order is important) that when you do a feeling lucky search, it goes through. If nothing matches, it just does a normal feeling lucky search.
But if it does match it goes to wherever the regex tells it to go.
regex: "Q(\d+)$"
template: "https://www.wikidata.org/wiki/Q$1"
So if I do Q562818 ! it would match the first regex and go to the item. But if I did Kagi blog ! it would be a miss and just be a normal Feeling Lucky
Probably quite niche use case BUT I feel like some fellow power users could benefit from it.