When i recently retweaked my back I switched from regular squats to front squats to maintain leg strength and size. I managed to go relatively heavy without issue.
I did some real light deads focusing on actually using my lower back muscles rather than avoiding them.
I did some hyperextension.
Some weighted ab work, planks and leg raises.
Some supported t bar rows for the upper back.
The back issue you'll probably have to live with for life. It will retweak but not as bad. You'll just learn to manage it better. Don't worry tho it's common and weightlifters, wrestlers, etc have dealt with it.