Hello Andrei, These are not hyphens. They are 'paired dashes' (and should be longer than a hyphen) and act in a similar way to a pair of commas or pair of brackets, but create a more emphatic break in the sentence. Your version 2 of the sentence is ok.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.