Hi @mnlatam
Instead of regex, could you give this a try

and then use the validation
AccNum = Path.GetFileNameWithoutExtension("/RPA/sample/012345678910.xlsx")
flag = AccNum.startsWith("123") And AccNum.Length.Equals(12) And AccNum.IsNumeric
AccNum - String
flag - Boolean