I'd argue that it's not a good thing that you can just disregard block scoping willy-nilly from within unprivileged code.
If you are in a context where you are concerned about "privileged vs. unprivileged" code, you have to sandbox way more than that, and Lua provides you many mechanisms to control that (more than any other mainstream scripting language). Disabling the "debug" library which I used there for traversing block scopes is the very first thing one does when sandboxing in Lua.
At which point you can no longer use this fmt construct, so what was the reason for having it?
...Or just do it in 28 lines of Lua:
http://hisham.hm/2016/01/04/string-interpolation-in-lua/
This is a nice showcase of how Lua's metamechanisms can be applied to do things that often require new features in other languages.