You’ve been here long enough to know better than that! OMG! Expecting to examine the {QUERY_STRING} in a RewriteRule regex - it’ll never happen.
Okay, now that you’ve been properly chastised, please allow me to recommend a review of the tutorial linked in my signature - then look at the examples dealing with query string manipulation.
If you attempted to read the tutorial and couldn’t understand parts of it, PLEASE ask questions. I have been here for years and it’s helped members all through those years so you’re the first.
I am willing to help if I know that you’re trying and make an attempt to learn because I will not help “script kiddies” and there have been a few in here that were upset that they didn’t get someone to code for them for free. Just let me know how to help you understand the tutorial so you can be knowledgeable, too.