I actually found a fix for my issue but that was more of a weird workaround
and I didn't disable ipv6 for bedrock but system wide but weirdly it still detected ipv6
I re-enabled IPV6 on my system then tried a different trick, I've deleted the current bedrock server and re-extracted the server files then I made it so the IPV6 in the server properties was set to the port 999999
after doing this the server worked and assigned a random port to the ipv6
I actually found a fix for my issue but that was more of a weird workaround
and I didn't disable ipv6 for bedrock but system wide but weirdly it still detected ipv6
I re-enabled IPV6 on my system then tried a different trick, I've deleted the current bedrock server and re-extracted the server files then I made it so the IPV6 in the server properties was set to the port 999999
after doing this the server worked and assigned a random port to the ipv6