Copying the “normal” (classic) link of an item in SharePoint

In the modern list/library view, SharePoint provides you an option to “Copy Link” of a selected item (document/image/list item etc). This command works great when users want to share an item with others. The link provided by this command has some sort of complex Id in it which I think is related to sharing/permissions etc.

The problem