An at sign can be part of a path segment. Decide where the path starts in the address first. That tells you whether the at sign is even in the region you are using for the hostname comparison.
Mark the first single slash after the host
In https://artroom.example/@lina/portfolio, the first path slash comes just after artroom.example. The host has already ended when @lina appears. The last segment is portfolio. The at sign is an allowed character in a path segment. IETF path segment syntax
Separate a creator label from the destination
https://artroom.example/@eli/portfolio names the same host and a different visible path. If you expected Lina's portfolio, read the creator segment. You do not have to infer who controls a creator name to identify the visible difference.
Use the established page route if the label is unfamiliar
Reopen the known portfolio bookmark if the URL points to a segment you did not expect. When it opens, read the host and the entire relevant segment, including its leading at sign. Leave judgments about the page content until you are on the intended view.