There was a can of mounting foam without a nozzle and there was no time to go to the store. But there is a printer. I saw a comment on Makerworld that the model does not fit tightly and the foam leaks where it shouldn't. But I didn't believe it and it was in vain.
If you decide to print a nozzle for mounting foam on a 3D printer, consider the possibility of such a problem. Because it's hard to clean up. Here is the link to this model https://makerworld.com/en/models/1324907-replacement-spray-foam-nozzle
I see that there are more comments with photos: