define extract? do you need to remove all numbers? or get all numbers?
one time I would use preg_match regex101.com/r/QZlV0L/1 the other time preg_replace.
but it heavily depends on the string structure maybe preg_match is just the hardcore variant ;)