To reproduce middle click the notification item to open it in a new tab, then reload the page, this notification is not removed, it's still highlighted and counted as unread.
It works good if using left click.
Firefox 105.0.3 (64-bit), Windows 10 21H1 64-bit.