Different browsers copy/paste things in different ways. Microsoft likes to grab all of the invisible HTML formatting that surrounds whatever you are copying and insert that crap into wherever you are pasting it. Sometimes you might want this, usually I don't.
Some browsers, Brave for sure, maybe all Chromium-based browsers, have an option to "paste as plain text." That is the BEST OPTION to use when pasting links into the forums.