It’s not illegal to have coins that at some point in the past were mixed. In fact I suspect that most bitcoins can be traced back to a mixer if you go back.
P2P dexs dont care about mixer usage, you can always find a way to cashout if you have the private keys.