Parent a colored rectangle to text layer, put that under the layer with the word that needs it as background and select track matte inverted- you will get the effect from the example you posted. Of course if you need to put background to one word in a line, you will need to have that word on a separate text layer and if you need to make the background appear and disappear living the word behind, you need to duplicate the text layer with that word and place one under the background layer + change opacity.
Hope this is clear…
Tudor “Ted” Jelescu
Senior Compositor/VFX Artist
Bucharest, Romania