I would rework slightly so that if we are inside of one of the fenced tables, then we should assume it's a table (don't even ask TABLE_REGEX, as it could be a single column table).