The assumption would be that the key would always exist, so rather than a regexp you could just do a `.substring(prefixKey.length - 1)` here.