from typing import Pattern
from typing import Tuple
import re


def parse_vector(s: str, *, num_re: Pattern = re.compile(r"[\d.-]+")) -> Tuple[float, ...]:
    """Convert a vector string into a tuple."""
    return tuple(map(float, num_re.findall(s)))