Parses hyperlink specifications from OSC 8 commands.
@spec parse(String.t()) :: {:ok, String.t(), map()} | {:error, atom()}