Is .NET 5 bot allowed or only .NET Core 1-3

Hi another question on the .net bot, should the docker file still use the 2021 image? I found that I can only successfully submit a bot to the portal with .net 5 using that image, .net 3.1 and 6 failed with:

Could not execute because the application was not found or a compatible .NET SDK is not installed.