After the R 4.5.0 release, the reverse dependency check does not work due to a change in the default `gsub` behaviour when an empty list is supplied.