In a Windows Server environment you can do:
aws s3 ls s3://<bucket-name>/ | ? {$_.split(" ")[-2] -eq "PRE"}
It must be done from a Powershell console and yon need the AWS Cli installed.
The ? is an alias of Where-Object