It's not a problem with Devil sight, but with Darkness itself.
Larian implemented darkness and obscurement in a way that disallows ranged attacks in or out. Wich is wrong.
They do this to imitate your lack of sight to the target. But it shouldnt disallow targeting. It should impose disadvantage.
From the same mindset they made invisibility as automatic hiding. Wich it's not.