Write inline math using a plugin like Latex Suite within a Hebrew note. The problem is weird behavior when switching to English inside the $$, such as the cursor staying stuck on the left and commas/slashes inserting in the wrong place.
Using $$ is mainly for math blocks in paragraphs of its own, and if you want math within a paragraph you should use single dollar signs, $, on either side of the math expression. See Advanced formatting syntax - Obsidian Help
Does using the correct variant help in your situation?
I actually meant that I used this variant, with single dollar signs for inline math (I apologize if my wording was misleading). Math blocks seem to work just fine, it’s the inline math that’s problematic.
Actually, I just encountered an issue with math blocks (double dollar signs) where for expressions that don’t contain letters, the text aligns to the right side and the cursor problem persists.