I just spent like 2 hours trying to virtualize aarch64 using #qemu without any success I even tried to compile my custom kernel using this tutorial: https://www.youtube.com/watch?v=LyWlpuntdU4. The only thing that I can think of to make it work is to compile everything on my rpi3 (qemu doesn't support rpi4/5) and let it run over night and see what happens.
QEMU for Linux kernel developers

YouTube
I just realized that I can just download the things I need from the rpi repos and then exctract them.
It works! I managed to do it thanks to this github repo https://github.com/keygenqt/skill-qemu-alpine. It needed some fixing but I managed to get it work. Thank you the person who made it.
GitHub - keygenqt/skill-qemu-alpine: Installation and launch Alpine Linux scripts for armv7 and aarch64 on x86_64

Installation and launch Alpine Linux scripts for armv7 and aarch64 on x86_64 - keygenqt/skill-qemu-alpine

GitHub