I have input containing ANSI color codes that I'd like to tablify.

For example, for this input,

    \033[0;32;1mgreen_apple\033[0m 1 100
    orange 20 19
    pineapple 1000 87
    avocado 4 30

The output I expect would be similar to

    green_apple 1    100
    orange      20   19
    pineapple   1000 87
    avocado     4    30

I'd like to know how this can be accomplished.

I've tried column, but it doesn't handle ANSI codes. The output of

    echo '\033[0;32;1mgreen_apple\033[0m 1 100
    orange 20 19
    pineapple 1000 87
    avocado 4 30' | column -t

is unfortunately

    green_apple  1     100
    orange                  20    19
    pineapple               1000  87
    avocado                 4     30


Notice the non-tablification.