I don't really see any issue with having the other types of addresses stored in your wallet... it's simple enough to add a label that says "do not use" if you're concerned about accidentally using the incorrect type.
At the end of the day, they're just different representations of the same private key.
You can ask.
jaja j/k Just because I don't want to make a mistake and breach my privacy. I used labels and just thought to ask for a better way.
Since you've said that the script in question is a straight forward nested segwit script, then you can follow DireWolfM14's instructions to grab the script from Electrum. You could also import the private key in to another Core wallet using importprivkey, and then get the script by using getaddressinfo on the P2SH address. Or if the address has ever been spent from, then you could look it up on mempool.space and extract the script from that transaction. Here's a recent example where if you click on details you can see the necessary data listed under "ScriptSig" on the left: https://mempool.space/tx/bb283826e76e5454d5e8bd26edbfe326aead40ca0af5393baf3b0790565a71d0
For nested segwit, the script will take the format 0x0014, followed by 20 bytes (40 characters) of hex.
Thank you again. I found it using tt]getaddressinfo[/tt] but it wasn't named "redeemscript" it was named "hex" and "scriptPubKey". Good thing I first used the example address and matched the script to the one DireWolfM14 shows.
Thanks to everyone for the help, issue solved.