Hi,
Apply below formula in cell B2:
=BYROW(A2:A4, LAMBDA(a, --TEXTJOIN("",, REGEXEXTRACT(a, "\d+", 1))))
An alternative formula is this:
=--REGEXREPLACE(A2:A4, "\D+", "")
If the numbers you may have in column A are formatted as phone numbers, then you will need to go to Format Cells > Category > General > Ok. This procedure returns them to normal numbers.
HTH