pub(crate) fn range(&self) -> Option<&'a str> {
        match self.range {
            Cow::Borrowed(s) => Some(s),
            _ => None,
        }
    }
Access the range based on the lifetime of the underlying string slice
this will return None if the underlying range is owned.
crates/turborepo-lockfiles/src/berry/identifiers.rs