port 5007 is listening on the raspberry due to the LSP server
your win pc is a LSP client (via VSCode) to that server
the connection from the win pc is an outbound one
usually you don’t have filters on outbound (but maybe you use some kind of firewall that blocks this… doubt it)
something else maybe wrong. double check your VSCode settings