Thank you guys!
@Szalam I actually did read the reference on track mattes. But I figured out the problem!
I was changing the TrkMat of the solid with mask layer to Alpha matte(inverted) instead of changing the TrkMat on the Text layer or what I was trying to mask layer. And then you also need to turn off the opacity of the track matte mask layer(which normally happens by default when you change the trkmat settings)
Here are my “timeline”
1. The shape that I want to have stuff fly out from behind.
-in my case it was a thin line
2. Solid layer with the mask (hide layer/turn off eye)
3. The text that I want to fly out from behind layer 1. TrkMat is set to Alpha Invert.
And that’s it. Thanks again