After Effects – Comp Name to Text

Easy to do.

Click the little arrow to reveal the Text options,  alt / option click on the stopwatch icon, and past the following into the expression field.

thisComp.name

Slightly more advanced below.

https://zacklovatt.com/split-sourcetext-from-comp-name/