Worpdress Elementor. How to read query variable from rewrote url in?

I need to create a Elementor page which should have the following URL structure: /order/(.*?)-([0-9]+)?$ At this page I should display a Elementor widget which will display information about order with given orderId. Whay I reied to do is to create a custom URL rewrite url as follows: function rewrite_init(){ add_rewrite_rule(‘/order/(.*?)-([0-9]+)?$’, ‘index.php?tag=order_page&order_id=$matches[2]’, ‘top’); } add_action(…