i need to know how to preg_match ID from instagram URL
https://www.instagram.com/p/BrODgnXHlE6/?utm_source=ig_share_sheet&igshid=znsinsart176
i tried
preg_match('/https://www.instagram.com/p/(.)/(.)/U', $video_url, $matches);
$video_id = $matches[1];
But it is not working Thank you
<?php
$url = "https://www.instagram.com/p/BrODgnXHlE6/?utm_source=ig_share_sheet&igshid=znsinsart176";
preg_match('/https:\/\/www.instagram.com\/p\/(.+)\/(.+)/U', $url, $matches);
$id = $matches[1];