Fix irregular whitespaces

When I paste text from Word I get spaces as   (no-break space) or   (em space). I don’t need this spaces, especially in code blocks.

Now I have to use VSCode and plugin fix irregular whitespace

Is it possible to make the same function in Obsidian?

https://allalmohamedlamine.medium.com/fixing-and-removing-irregular-spaces-984389e17132