I want to automatically extract Totals and percentages reported in this document <https://health-infobase.canada.ca/covid-19/epidemiological-summary-covid-19-cases.html> in Table 2 and Figure 7.
They are printed there as `16,296 (12.4%)`

Can you help me please to write an R function that does this, i.e., which gets two numbers `A` and `B from a string` A (B%)`.

Note there are "," in large numbers.

Thank you