[standard rant #4]
The definition of an idiot is someone who repeatedly does the same thing expecting a different result. Asking Apache to confirm the existence of ANY module with an <IfModule> ... </IfModule> wrapper is the same thing in the webmaster world. DON'T BE AN IDIOT! If you don't know whether a module is enabled, run the test ONCE then REMOVE the wrapper as it is EXTREMELY wasteful of Apache's resources (and should NEVER be allowed on a shared server).[/standard rant #4]
Okay, that's NOT to call you an idiot, it's simply to remind you in the clearest terms possible that any webmaster would only run ONE server test, not repeat server tests multiple times for EVERY request!
You also need to learn which characters are considered metacharacters with a character range definition as it seems that you've gone "escape crazy" by escaping every character (none of which needs escaped except the ? which should not be there in the first place).
You might benefit from reading the mod_rewrite tutorial linked in my signature as it contains explanations and sample code. It's helped may members and should help you, too.