{{userForm.controls?.name?.errors?.startsWith.message}}
You can enter value which starts with '#'
If you want to apply conditional validation on 'Task Id' then you need to add 'name' input as 'Bharat'.
Conditional Expression with type 'string'
{{userForm.controls?.taskId?.errors?.startsWith.message}}