Fix extension regex

So it no longer matches `.eco` in the middle of the filename.