The following is a brief regex that should work:
/^([1-9])\1[0]$/
It uses a backlink for the first matching character to match the second. It provides a template 11, 22, 33etc.
Here is an explanation of the characters used in the expression from regex101:
^ Approve position at beginning of line- 1st capture group
([1-9])[1-9] matches one character in the range 1 to 9
\1 ,[0]$
:
https://regex101.com/r/oV6rE7/1