strip_types_prefix() does not work with non-standard distribution names, i.e. if the stub_distribution metadata key is used. The remaining uses are only relevant when declaring a dependency on such a name, which isn't the case at the moment, but these uses should eventually be fixed.