I know that Slovenia at least allows this.
https://www.slovenia.info/en/plan-your-trip/all-you-need-to-know-for-a-healthy-and-safe-vacation-in-slovenia
What you describe is called an immunity passport, but while there’s been lots of discussion about them, to date there are no countries that issue or accept them. See the Wikipedia article for details:
Credit:stackoverflow.com‘