Regular Expression

Hello everyone

I need help with issue ive got with get date using entityin arabic languge, when the user enter this (25-10-2023م.)
the output should be this (25-10-2023)
the regex i used is this (\b(0[1-9]|[1-2][0-9]|3[0-1])-(0[1-9]|1[0-2])-\d{4}\b) using it as custom enteint also in Entity Rules used this
\\
{
“rule-1”: “\b(0[1-9]|[1-2][0-9]|3[0-1])-(0[1-9]|1[0-2])-\d{4}\b”
}
\\
i test the code in (https://regex101.com/ ) and it work perfectly

can you please help me with this issue
Best Regard