Am I understanding this correctly? You are working with a string of text that will look something like this:
ID: T02345194 Dhaliwal, Amarpreet K.
And from that string of text, you want to extract two values: the ID number and the name. Like this:
T02345194
Dhaliwal, Amarpreet K.
If that's correct, then you probably just need something along these lines.
(T\d{8})\s+.+
T\d{8}\s+(.+)
That's a pretty basic set-up, so it is making a lot of assumptions about the fact that the string will be pretty similar every time. If there is a lot of variation, or other values around this string, then the RegEx will likely need to be more robust/complex.
Note - I used https://regex101.com/ to test these. It also explains each part of the expression.