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