In Developer options you can select a mock location app like
Private Location[1], and there is an app named
Shelter[2] that allows you to freeze and unfreeze (depending on what you mean by the terms, you may want the last mentioned app, see [3]) applications in your personal and work profile (and to isolate and run multiple instances of apps using Work Profiles). Additionally, you might find
SuperFreezZ App stopper[3] useful and it might be what you are looking for. It allows you to entirely freeze all background activities of apps (unused apps, too, automatically). All of the apps mentioned work without root, and are worth checking out.
[1] Private Location - https://redplanet.gitlab.io/fdroid-website/en/packages/com.w...
[2] Shelter - https://f-droid.org/packages/net.typeblog.shelter/
[3] SuperFreezZ App stopper - https://f-droid.org/en/packages/superfreeze.tool.android/
---
EDIT: According to https://f-droid.org/pl/2023/10/19/twif-client-alpha-kde-remo...,
> Private Location was also removed as was no longer functioning and development has stopped years ago, as reported in #3096 (https://gitlab.com/fdroid/fdroiddata/-/issues/3096).
That is a shame. The other applications are fine, at least.