In general it’s not a good idea.
It can be done very carefully. First ensure laptop is actually Bluetooth 5, if not don’t bother as audio will stutter. Even if Bluetooth 5, often the default drivers are bad. You may get lucky…
Turn the Bluetooth off on phone.
Turn Bluetooth off on laptop.
Put buds in case.
Turn Bluetooth on laptop
Take right bud out of case
Pair on laptop
Take left bud out of cases check laptop plays stereo.
If that works then to swap from laptop to phone, turn Bluetooth off laptop and phone, put buds in case, turn Bluetooth on phone, take buds out.
To swap phone to laptop turn all Bluetooth off, buds in case, turn laptop Bluetooth on, buds out of case.
Why it’s hairy and a thing to avoid is the laptop if Bluetooth is on will attempt to reconnect to everything it was paired with and so break your phone connection, and some people need to keep laptop Bluetooth on for other things.
So long as only one Bluetooth on at a time you can share via off/case/on.
The most reliable is have dedicated audio for laptop, ideally wired as Bluetooth is tricky with drivers on Windows 10, nightmare for many.
Q30 wired with inline mic for laptop and LA2P for phone, is a good combination.