AIPerception isnt sensing players on dedicated server build

We got enemies sensing and moving/attacking players using the AIPerception component, which works nicely in editor, standalone build and listen server build.

However on the dedicated server build it does not sense any player characters, it still can sense other enemy characters. Weird part is in editor, there is no problem if i set it to use a separate server and set the play mode to client, which should run a dedicated server in the background.

It’s only with a build dedicated server, when this problem occurs.
Any ideas what could cause that? Player and enemy characters are derived from a common character class.