How can I extract info from a field name?

There is a hacky way described here.

In essence its this formular:

table.table._engine._current_node.col_id

So you could go for (warning ugly list comprehension + spaghetti code ahead):
[int(x) for x in str(table.table._engine._current_node.col_id).strip("t").split("s")]