It won’t work out of the box, there is a need for additional support installation:
sudo apt-get install qemu binfmt-support qemu-user-static # Install the qemu packages
It is then possible to:
$ docker run --rm -ti --platform linux/arm64/v8 gitea/test_env:linux-arm64 go version
go version go1.19 linux/arm64