Dynamic Lookup with more than one column configured in List layout is showing only first configured field value in Modern UX.
This is OOTB solution and does not require XOG and results in showing the ID in the pull down. Go into Classic, locate the lookup and update the AutoSuggest area to include ID and save...then go back to MUX and see the ID adjacent to the Project Name.