Not able to type digits more than 10

Welcome back to the community, @mumtaz4uali! Try the following regex code:

regex(., '^[0-9]{10}$')

Note: You will have to make the question type as text and appearance as numbers. For more regex code, please visit our support article Restricting Text Responses With Regular Expressions.