There is a similar topic Track mattes in After Effects 2023? . You can check it out to see if that helps. Cheers.