Declaring a dependency on https://packages.debian.org/buster/default-jre makes apt install the LTS release. A lot of comments here are actually advocating static linking, which is kind of a shock—I don’t see a good reason for it at all.
Except it is up to Debian to keep that JRE running, as it is no longer part of default Java builds.
All the JRE after Java 9 have to be maintained by the community, if they care to still use them.
JRE don't work on the days of App Stores, even Google has finally grasped that ART cannot be part of the OS and has taken the steps to ship it out of band on Android 12.
Each application is supposed to create their customised runtime.