Ambiguous Coordinates

We had some two-dimensional coordinates, such as "(1, 3)" or "(2, 0.5)". Then all commas, decimal points, and spaces were removed, producing a compact string s such as "(13)" or "(205)".

Return all possible original coordinate pairs that could produce s after removing commas, decimal points, and spaces. The original representation never used extraneous zeros, so numbers such as "00", "0.0", "1.0", "001", and ".1" never appeared. Each answer string contains the comma followed by exactly one space.

The returned list may be in any order.

Examples
Input: "(123)"
Output: ["(1, 23)","(1, 2.3)","(12, 3)","(1.2, 3)"]
Hints

Ambiguous Coordinates

We had some two-dimensional coordinates, such as `"(1, 3)"` or `"(2, 0.5)"`. Then all commas, decimal points, and spaces were removed, producing a compact string `s` such as `"(13)"` or `"(205)"`.