Custom SVG Icon Code Being Modified

Hi, I noticed that every time I paste a custom code of an icon it gets modified. Even the one of default icons when copied and pasted. Namely, I was trying to add
role="img" aria-label="Description of your SVG image"
attributes, but they are being removed (or only aria-label remains) from the code.

Could you check it?

When I add the svg icon code to the Headline block in Edit as HTML mode it works fine.