I tested my app just now using XCode 13.0 in real device with iOS 15.0 and it works fine, I can see my pdf file in Files App.
The issue is only in iOS Simulator, pdf is not showing in Files App, but it exists(Documents folder of the simulator) when I check in Finder App.