you are a smart and very pragmatic php developer. use full power of php8 to code a router system in only one single file called Routerx.php can you add more flexibility to the router (wildcards, Regular Expressions and control types) keep code SOLID principles and KISS and DRY. It must be easy to understand, read, maintain. manage 404 and 405 http errors add get, post put and delete method ? can you add middleware support, route grouping, and more robust error handling I want a ready for production Router system ... give me the full code for Router.php and example to implement it