Based on what I have read from the documentation on the function, you need to pass a reference to the Tilemap node itself to the overlaps_body function.
I have not tested, but I think something like this may work:
var tilemap_node = null
var area_node = null
func _ready():
area_node = $Area2D
tilemap_node = $Tilemap
func _physics_process(delta):
if area_node.overlaps_body(tilemap_node):
velocity.y = 0
Also, welcome to the forums! :smile: