from typing import Sequence
from typing import Tuple
from typing import Optional
import re


def find_token(
    string: bytes, pos: int, tokens: Sequence[bytes]
) -> Tuple[Optional[bytes], int]:
    """Find the first occurrence of any of multiple tokens."""
    pattern = re.compile(b"|".join(re.escape(token) for token in tokens))
    match = pattern.search(string, pos)
    if match is None:
        return None, -1
    return match.group(), match.start()