Filter Ways by Specific Highway name via Overpass?

Hello, I was wondering how we can filter a highway by a specific highway name such as I-10 or I-20 through an overpass query? I know there are different highway types such as primary, secondary, motor-way and they can be filtered that way. However, I’m not sure how we can filter by name. Also, is there a way to only get the highway part that connects two cities?

Take a look at this wiki article. The tag you are looking for is called ref=* :
The same way you would query for a specific value (primary, secondary) on the highway key, you can query for a specific value (I-19, I-20) on the ref key.