How to get custom URL routes property_id in wp php plugin?

get property_id to URL: ‘index.php?properties/123’ (index.php?pagename=properties&property_id=$matches[1])

$property_id = get_query_var( ‘property_id’, 1 );
output : 123

techhipbettruvabetnorabahisbahis forumutaraftarium24edusedusedueduedusedueduseduedusedus