<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0609</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2026-11-18</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0001275168</issuerCik>
        <issuerName>FIVE STAR BANCORP</issuerName>
        <issuerTradingSymbol>FSBC</issuerTradingSymbol>
        <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001856096</rptOwnerCik>
            <rptOwnerName>Beckwith James Eugene</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>C/O FIVE STAR BANCORP,</rptOwnerStreet1>
            <rptOwnerStreet2>3100 ZINFANDEL DRIVE, SUITE 100</rptOwnerStreet2>
            <rptOwnerCity>RANCHO CORDOVA</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>95670</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>President &amp; CEO</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2026-11-18</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>1412</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>42.98</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>438174</value>
                    <footnoteId id="F1"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>By self as trustee</value>
                    <footnoteId id="F2"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable></derivativeTable>

    <footnotes>
        <footnote id="F1">Includes 45,000 shares which were granted pursuant to the Five Star Bancorp (&quot;FSBC&quot;) 2021 Equity Incentive Plan (including 32,144 shares which have vested and 12,856 which are scheduled to vest in equal installments over the remainder of a seven-year period, provided Mr. Beckwith remains employed by FSBC on the respective vesting dates), 20,000 shares which were granted pursuant to the FSBC 2021 Equity Incentive Plan (including 8,000 shares which have vested and 12,000 which are scheduled to vest in equal installments over the remainder of a five-year period, provided Mr. Beckwith remains employed by FSBC on the respective vesting dates), and 7,062 shares which were granted pursuant to the FSBC 2021 Equity Incentive Plan (including 1,412 shares which have vested and 5,650 which are scheduled to vest in equal installments over the remainder of a five-year period, provided Mr. Beckwith remains employed by FSBC on the respective vesting dates)</footnote>
        <footnote id="F2">Shares are held by the Beckwith Family Trust dated April 10, 1998, for which Mr. Beckwith serves as a trustee.</footnote>
    </footnotes>

    <remarks></remarks>

    <ownerSignature>
        <signatureName>/s/ James E. Beckwith, by Heather C. Luck, Attorney-in-Fact</signatureName>
        <signatureDate>2026-11-19</signatureDate>
    </ownerSignature>
</ownershipDocument>
