Fix extension regex

So it no longer matches `.eco` in the middle of the filename.

Sorry for that, it was an unfortunate oversight.