I will suppose there is only one couple pass/hash per line.
if it’s just manually, you can perform a “cat my_file | cut -d = -f 1 > my_fille_cut” to extract the desire field.
And for the regex, you could try this : /^(.* =) [$$$$$$$]=
replace the $$$$$$ with the caracters composing your hash, and perform a Regex.exec(line) to get the pass plus the equal sign.
In bonus, here is a quik detail of what the regex is doing :
^ catch the begining of the line
.* catch everything it can, exept newline
" =" catch the space followed by the equal sign
- the ( ) surrounding .* = create a subdivision in the result of the exec function ( to get the full match,  to get the first parenthesis,  for the next paranthesis…)
 to catch the hash part.