The second ability doesn’t care where the regeneration shields Spiny Starfish used that turn came from. If it regenerated due to a regeneration shield from Refresh, for example, the ability will still put a Starfish token onto the battlefield.

Artwork
Loading artwork…
Spiny Starfish
Alliances · #35 · EN
Nonfoil—Foil—
Card rules
0/1
Uncommon · Illustrated by Alan Rabinowitz
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Premodern Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Spiny Starfish’s first ability creates a regeneration shield for it. Spiny Starfish’s second ability checks whether it _used_ any regeneration shields that turn, not whether any regeneration shields were created for it.
The second ability has an “intervening ‘if’ clause,” so it won’t trigger at all unless Spiny Starfish had regenerated that turn. However, the number of tokens that are created isn’t determined until the ability resolves (in case it regenerates again before that time).
If Spiny Starfish regenerates during the end step after its second ability has resolved, no tokens will be created as a result.