Prevent Area2D from detecting One-Way tiles

I’m currently working on a 2D platformer with a wall sliding/wall jumping mechanic. An Area2D is used to detect walls since the IsOnWall() function that CharacterBody2Ds use can be unreliable. However, this Area2D also detects tiles with the One Way attribute, meaning when moving against these tiles, the player appears to slide on air (shown below). Is there any way I can differentiate one way tiles from solid tiles?