bgp-as-path v6 to v7 expression

Can anyone help me convert v6 expression “bgp-as-path = 65530_[1-9]_[1-9]$” to v7 expression?

Probably something like:
65530[min-max]?[min-max]?$

where [min-max] is the range of ASNs you want to match.

Also, you can still use old string matching with the “bgp-as-path-slow-legacy” parameter.