Almost every time I update my nixos, Python needs to be recompiled in every development shell

Firstly please pin your nixpkgs for projects this will probably massively help your issue.
Secondly you are using a different python than the default python 3 in nixpkgs,
see the anwser of your linked post Why do I need to compile Python (and packgages) every time there is an update? - #15 by NobbZ .
packages are not built for that. so everytime any package or any transitive dependencies changes if a package you are using is affected you will need to recompile it.
i highly recommend switching to python3 which currently is python 3.12