The folks who have added cake-autorate (https://github.com/lynxthecat/cake-autorate/tree/v3.1) to the OpenWrt router (https://openwrt.org/) are having good luck with exactly this scenario.
In fact, they have a specific config file for Starlink - https://github.com/lynxthecat/cake-autorate/blob/master/Example_Starlink_config.sh to use as a starting point.
In fact, they have a specific config file for Starlink - https://github.com/lynxthecat/cake-autorate/blob/master/Example_Starlink_config.sh to use as a starting point.