You’ll need to first get the input. Just like you do with the mouse_pos. This is screen position.
Next, you’ll have to transform your screen click position somehow to match something you see in camera viewport, and this can be done using Camera’s ScreenPointToRay method:
This will get you hit point in your terrain or ground plane, or whatever you have. Using ScreenToWorldPoint doesn’t do that.
Next you should probably do what you do in second last line, i.e. calculate direction towards this hit point from your player. Maybe also normalize it.