problem solved for me thanks to a kind YouTube user.
for unreal 5.1.1:
Platform → Packaging Settings →
Set "Use .Pak" to false.
Set "Cook everything in the project content directory" to true.
then, cook for windows.
to create the pak:
"UnrealPak workflow by FluffyQuack (v1.1)"