Error: 'here' undefined

The steady state file is not Dynare code, but Matlab code. That’s why model-local variables (#) do not work there. Similarly

exp(L_r)	= 1 - omega ;

is not a proper Matlab assignment. You would need

L_r	=log(1 - omega);

Generally, I cannot recommend full exp()-substitution as it creates a lot of problems that can be circumvented. See Question about understanding irfs in dynare