That's true. It's is no longer allowed for security regulations "made by Google" on newer versions of Android. The directory is simply not accessible on newer versions of Android. Don't ask me why Google is doing such stupid things, I am tired about complaining against Google.
You can lower the target SDK-level of your app in manifest, but then Google will not accept an upload of this app to the playstore, so this is only a way to go for non-playstore-app. I think the "download folder restriction" was starting with SDK30, so setting your app to SDK29 should work for you, but not with the playstore.