download Pins & Boxes at
https://aescripts.com/pins-and-boxes/

Sometimes a text should not just have a single background box, but you rather want the text background to be split into several boxes that you can colorize and animate independently. With the extension Pins & Boxes for After Effects you can do this very easily – and all boxes resize automatically, when the text is changed.