I'm not a lawyer. Having said that, my opinion is that you may not redistribute the Visual Studio Build tools.
The related Microsoft license terms at https://visualstudio.microsoft.com/license-terms/vs2022-ga-diagnosticbuildtools/ state -
" You may copy and install files from the software onto your build devices, including physical devices and virtual machines or containers on those machines, whether on-premises or remote machines that are owned by you, hosted on Microsoft Azure for you, or dedicated solely to your use (collectively, “Build Devices”)".
and also
" In addition, you may not: provide the software as a stand-alone offering or combine it with any of your applications for others to use, or transfer the software or this agreement to any third party."