Then the formula should be

=aa(A1,".*?\d{3}-\d+")

Edit