You shouldn't put it in the movement code like that, or it will just flicker left and right constantly as you hold down the button. Also, you don't want to use "value *= 1" as that does nothing (one times anything is just the original number).
What you can do is save the original positions and then set them after the if/else clause.
var shape_pos
var area_pos
func _ready():
shape_pos = $CollisionShape2D.position.x
area_pos = $Area2D/CollisionShape2D.position.x
After and outside the else:
if $AnimatedSprite.flip_h:
$CollisionShape2D.position.x = -shape_pos
$Area2D/CollisionShape2D.position.x = -area_pos
else:
$CollisionShape2D.position.x = shape_pos
$Area2D/CollisionShape2D.position.x = area_pos
Hope that helps.