You can use numbers in variable names in lua you just can't have it start with a number...
and the steamid is a string anyways
"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016
[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
I'd firstly question why you're trying to "compress tables" in the first place. Turning a table into a string and then compressing that is not a good way to encode a table.
Secondly, no this is not a Lua 5.1 bug. There's a distinct difference between a variable (which is a syntax construct) and a key in a table (which is purely data). You can have any string value as a table key, whether it would be valid to write as a variable or not. For example, these are all valid: