Check where the link leads
If it opens a FACEIT match room, find Watch Demo and wait for the download. If the browser immediately downloads a file, check that the link comes from the match platform. A Steam sharing code may open the game or a match page. The code itself is not a replay file.
Prepare the .dem file
Extract the recording if it came in an archive. Find the CS2 install through Steam and place the .dem in game/csgo. Enter playdemo followed by the file name in the console. Use a short file name without spaces for the first test.
If the link has no replay
Check whether the original match page still offers a recording. If the link has expired, ask the sender for the file or the current match page. A broadcast video plays in a browser. To pick a player's perspective, you need the demo file.