Wash rule applies +- 30 days.
Alternatively, you can buy in your Roth IRA, then wait a month before you sell at a loss in the taxable account.
The outcomes are:
If asset goes up, then the Roth IRA is up that much more, your loss is a little less than expected.
If asset went down, you just take the extra loss in the taxable, Roth IRA would have to recover that anyway.
Only issue is that you're essentially doubling down for a 1 month period (during which time the situation for the security might change), but if you planned to take the loss and hold the asset in the Roth account long term, then this lets you keep the same security without having a 1 month gap.