quick bug fix: fix #62943

ensure to use RationalExpression.regex() by multiplying with RationalExpression