Unlike previous Apple cellphones, iPhone 7 doesn’t use a mechanical home button and it’s harder to repair when it gets damaged; Moreover, the home button is paired with logic board, which only works with the original one that it was shipped with.
if your home button is broken but the problem was found only damages on home button flex, and the return-to-home function works well because most of these problems can be settled by wire jumping.
There have a solution for
iPhone 7 defective home button repair with a historic part— Customized Charging Port Flex