Note I editted the regexpr to cover more cases into
'^\bT[A-Z][A-Za-z0-9]*[0-9]\b$'
Starts with capital T, followed by another capital, followed by arbitrary ansi and ends on a number.
This is how the IDE initially names the components
This covers things like TButton1023 or TBu5tTon10 too.
If you need to cover for Tbutton, lower case b, too then you can remove the first[A-Z]
By now tested on regex101.com and they work as I expected.
I tested this one too that goes like this:
'^\bT[A-Za-z0-9_]*[0-9]\b$'
Starts with captital T followed by arbitrary ansi, including underscores and ends on a number.