Failed to open Custom links in Ptyxis (Gnome terminal)

I’m using bazzite-dx with gnome for my daily development. I’m missing a feature in the bundled terminal app (ptyxis). I want to be able to click on an URI, such as ~/filename.jl and have VSCode open it. I’ve seen in settings that you can create custom links using regex, and then associate an URL to it. But I’m struggling to make it work. No matter how I define a custom link, when I click open link it says “Failed to open link”. This doesn’t happen with URLs in the terminal, only with my custom links. Anybody figured it out?

Oh, and second issue: it would be great to be able to simply click on the links and have them open directly, without going through the context menu. Is that possible?