Filter by ID Name returns empty array even though there are items in the world with provided substring

So I have been messing around with Editor Scripting.

I created some tools using UE 4.27 which included the “Filter by ID Name” node and worked flawlessly. When porting to 5.1 that filter is no longer working.

I am trying to filter elements which contain the substring “sm_” for static meshes but even though the level contains elements with that name, it returns an empty string.

How ever, when i try filtering by a longer substring (“light”) it works.

Has anyone experienced anything of that sort?

Thanks in advance!!