This is one area where Kong unfortunately struggles at the moment.
Our docs are outdated in this specific area as well.
Can you follow along this thread: Plans to expose config.rewrite.uri in request-transformer plugin?
I think that’s what you need.