Set Variable to [window name matching regex]

@noisneil If it solves a problem then I'd be willing to simplify it to just one bracket, which would probably be fine.

Also I found a post that has a similar function to what I think I'm looking for (listing windows and finding a specific window via title) but for a different purpose: